bug-ncurses
[Top][All Lists]
Advanced

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

Re: accented characters


From: YuGiOhJCJ Mailing-List
Subject: Re: accented characters
Date: Fri, 17 Jun 2011 05:26:45 +0200

OK you are right, the solution is :
-Use the "--enable-widec" option of dialog's configure script to tell it to 
look for libncursesw
-Install the locales correctly for my language

The both things done, and it works :-)

To verify this, just download the files :
bash_4.1-3_i386.deb
dialog_1.1-20100428-1_i386.deb
gzip_1.3.12-9_i386.deb
libc6_2.11.2-10_i386.deb
libc-bin_2.11.2-10_i386.deb
libncurses5_5.7+20100313-5_i386.deb
libncursesw5_5.7+20100313-5_i386.deb
locales_2.11.2-10_all.deb
locales-all_2.11.2-10_i386.deb
ncurses-base_5.7+20100313-5_all.deb

Extract them in a directory (with 'dpkg -x file.deb dir') then chroot the 
directory.
Finally, type :
$ localedef -f UTF-8 -i fr_FR fr_FR.UTF-8
$ ./menu

If you don't generate the locale before with 'localedef', you will see the 
rectangle at the right of the item, else it works ;-p

Problem solved.
Thank you for support.

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

> 
> 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:
> >>
> >>> 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
> >>
> >
> >
> 
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net
> 




reply via email to

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