[Top][All Lists]

[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 05:29:12 -0400 (EDT)

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

Ok, in fact there are more than one problem :

1)Eterm and aterm don't support UTF-8. So, the best thing to do for me is to 
use an other terminal (I have the choice). This first problem is solved :-)

2)When a terminal support UTF-8 (xterm or urxvt), I got a strange rectangle at the right of the item when I got an accented character. So, for this second problem, you say I need to configure the locale correctly, isn't it?

hmm - I was looking _at_ the characters, not at the right margin.

One possible problem there is that you're linking dialog with libncurses rather than libncursesw, which makes dialog think the line is longer than the terminal thinks it is.

Use the "--enable-widec" option of dialog's configure script to tell
it to look for libncursesw.

Even with that, the terminal description distributed with urxvt will also cause display defects of this sort.

On Thu, 16 Jun 2011 04:16:31 -0400 (EDT)
Thomas Dickey <address@hidden> wrote:

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


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 :

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) :

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

Thomas E. Dickey

reply via email to

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