Bug#500236: wrong display of UTF-8 characters

2008-09-29 Thread Juan Céspedes
On Sat, Sep 27, 2008 at 1:32 PM, Thomas Dickey <[EMAIL PROTECTED]> wrote: >>> >>> #include >>> setlocale(LC_ALL, ""); > > Without initializing the locale, ncurses doesn't know about UTF-8. > It's an encoding that can use multiple bytes per character. OK, I understand it now; but I still th

Bug#500236: wrong display of UTF-8 characters

2008-09-27 Thread Thomas Dickey
On Sat, 27 Sep 2008, Juan Céspedes wrote: On Sat, Sep 27, 2008 at 1:21 AM, Thomas Dickey <[EMAIL PROTECTED]> wrote: Two observations: It does not initialize locale. #include setlocale(LC_ALL, ""); Nice. Including these lines it does work. Why is it necessary to initialize locale

Bug#500236: wrong display of UTF-8 characters

2008-09-26 Thread Juan Céspedes
On Sat, Sep 27, 2008 at 1:21 AM, Thomas Dickey <[EMAIL PROTECTED]> wrote: > > Two observations: > > It does not initialize locale. > > #include >setlocale(LC_ALL, ""); Nice. Including these lines it does work. Why is it necessary to initialize locale? I am tempted to rename the bug :)

Bug#500236: wrong display of UTF-8 characters

2008-09-26 Thread Thomas Dickey
On Fri, Sep 26, 2008 at 03:26:59PM +0200, Juan Cespedes wrote: > Package: libncursesw5,libncursesw5-dev > Version: 5.6+20080830-1 > Severity: normal > > When using multi-bytes UTF-8 characters in libncurses, it wrongly > calculates its width, and messes up all the display. > > Attached is a simpl

Bug#500236: wrong display of UTF-8 characters

2008-09-26 Thread Juan Cespedes
Package: libncursesw5,libncursesw5-dev Version: 5.6+20080830-1 Severity: normal When using multi-bytes UTF-8 characters in libncurses, it wrongly calculates its width, and messes up all the display. Attached is a simple program which demostrates it; the output should be: +--+ |Juan C