3
1
I'm using GNU dialog in one of my lengthy shell scripts. One of the areas I've got problems with is when I'm asking for an inputBox where the user can type a book's title, mostly in French.
In this inputBox, entering accented characters (éàè are very common in French), or special UTF-8 characters such as the em-dash "—" shifts the cursor 4 characters right, instead of one. After 3 or 4 "special" characters, the inputbox is completely unusable because of this artifact.
Similarly, when I display a menu with dialog, accented characters shift the right border of the dialog box. That's less handicapping than in the inputBox, but yet it's a visual discomfort.
I've tried all kinds of stuff to get this working, to no avail.
For the record, here are my LC_* environment vars:
LC_PAPER=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_ALL=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LANG=fr_FR.UTF-8
What could I do?
(Edit: as stated below, I'm on a Mac, and the same problem arises whether I use iTerm2 or the built-in Terminal emulator.)
dialog is not a GNU project. – Thomas Dickey – 2015-05-03T22:37:10.943