bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accented characters


From: Thomas Dickey
Subject: Re: accented characters
Date: Thu, 16 Jun 2011 04:16:31 -0400 (EDT)

On Thu, 16 Jun 2011, YuGiOhJCJ Mailing-List wrote:

Hello,

I see a problem with accented characters and dialog.

The menu box display a filled rectangle at the right of each item containing an 
accented character (see the screen shots attached to this mail). There is 
exactly the same number of filled rectangles than the number of accented 
characters in the item.

I use :
-dialog-1.1-20080819
-glibc-2.14
-ncurses-5.7
-bash-4.0

You can reproduce the bug using the script create_root_dialog.sh (see the 
script attached to this mail) :
$ ./create_root_dialog.sh
$ sudo chroot create_root_dialog
$ ./menu.sh

I add also some screen shots with the terminals (see attachments) :
-eterm
-aterm
-xterm
-urxvt

Can you tell me how to resolve this problem?

The odd screenshots look like the application is using UTF-8 encoding
while the terminal is not setup for that.  Eterm and aterm don't support
UTF-8, I recall.  xterm and urxvt do support it.

Your example script uses UTF-8 encoding.  If the locale were set properly
for each terminal, it would be possible for instance to use recode to
generate a ISO-8859-1 encoded version of the script for Eterm and aterm.

It would be possible to modify dialog so that it did the recoding - but
that's not currently implemented.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]