Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm writing some custom installers that will work on Ubuntu and I'm using the dialog utility to help simplify the process of getting user input.

Sometimes, I notice that the extended ASCII that dialog outputs (such as line frames around text boxes) is not displayed correctly. (you get the circle with a question mark in it). This seems to happen when a system has been provisioned using the PXE/Netboot installer.

I'm wondering, given that the only language I need to support is English, what locale I should check for and suggest installing prior to launching dialog?

I've noticed this across multiple releases, my question isn't specific to a certain release.

share|improve this question
add comment

2 Answers

  • Encoding is the only part of locale that should matter in this case, make sure that it's UTF-8.

  • Check that the font you use in a terminal contains the line-drawing characters.

share|improve this answer
add comment

Try

LC_ALL=C ./yourscript.sh

or

LC_ALL=en_EN.UTF-8 ./yourscript.sh

to get reliable results. At least the first one shouldn't need further installations.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.