[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: accented characters
From: |
YuGiOhJCJ Mailing-List |
Subject: |
Re: accented characters |
Date: |
Thu, 16 Jun 2011 11:21:55 +0200 |
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?
On Thu, 16 Jun 2011 04:16:31 -0400 (EDT)
Thomas Dickey <address@hidden> wrote:
>
> 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
>