#include <hallo.h> Philip Blundell wrote on Mon Feb 25, 2002 um 09:54:51PM:
> I'm not completely convinced about these two. That sounds to me like > your whiptail is still not fully UTF-8 enabled. It seems that it has problems on detecting that it is in UTF-8 mode. I tried setting: LANG=C@utf-8 (valid, existing) LC_CTYPE=C@utf-8 (valid, existing, for whiptail-utf8) LC_MESAGES=de_DE.UTF-8 (just a string, parsed and used by modconf) Well, modconf part seems to work, and all non-ascii string appear as two characters, but as two Question marks! > Remember that "de_DE.UTF-8" is not actually a valid locale string while It is only needed as LC_MESSAGES to enable usage of utf8-converted string files. If whiptail-utf8 also needs the value (though it should NOT depend on it), this may cause our trouble. > If that combination works for you, I suspect it's causing whiptail to > just pass all the UTF-8 codes straight through without really > understanding the characters. That would probably give you OK results Exactly. > for Latin languages like German (where the majority of characters are > not accented) but it may not be so good for those that have a higher > density of multibyte codes, like Japanese or Russian. It is bad in German too. In menus, rests of lines are cutted away after a non-ascii char. > > + old_locale = getenv("LANG"); > > + old_lc_messages = getenv("LC_MESSAGES"); > > + old_lc_messages = getenv("LC_CTYPE"); > > Looks like you got a bit carried away with the cut'n'paste there. Of course, already fixed. Gruss/Regards, Eduard. -- Flüssigseifenbenutzer! Fristeneinhalter! Geschenkpapierbügler! Auslandstanker! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]