Re: UTF-8 display problems
Urs Janßen <[email protected]>
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 18, 2004 at 02:24:57AM +0200, Johannes WeiÃl wrote: > Hello, > > On 2004-05-17 19:34:41, Thomas Dickey wrote: > > I'm not sure what parts of the option-menu would have non-ASCII > > characters. > > The option-menu is translated into German (because of enabled NLS). > Non-ASCII characters are first correctly displayed, but when I > scroll down, they disappear: > > 31. Blättere Artikel um ... Zeilen : 1 > 31. Bltere Artikel um ... Zeilen : 1 > > > The first thing to do is to determine how to reproduce the behaviour. > > It can always be reproduced, if tin tries to convert to UTF-8. > If LANG=C, every non-ASCII character is replaced by '?', but no > lines disappear etc. if do no set LC_CTYPE or LC_ALL then LANGs val is used for LC_CTYPE. "C" does not know any 8-bit chars thus they are converted to "?". > If LANG=de_DE.ISO-8859-1, everything works fine. I wouldn't use LANG but LC_CTYPE and LC_MESSAGES (cause it allows finer control) but that shouldn't matter. LANG=de_DE.ISO-8859-1 (btw. the codeset portion isn't needed here, ISO-8859-1 is the default for de_DE) should set LC_CTYPE to de_DE[.ISO-8859-1] and thus ISO-8859-1 chars are known as displayable. anyway, I can't reproduce your problem: ~ > xterm -v XFree86 4.2.0(165) ~ > locale LANG=de_DE.utf8 LC_CTYPE=de_DE.utf8 [...] linked against ncursesw5.4, debian linux-2.4.26 urs -- "Only whimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" - Linus