On Monday 25 April 2005 01:41 pm, Eugeniy Meshcheryakov wrote: > 25 ÐÐÑÑÐÑ 2005 Ð 13:08 -0400 Daniel Burrows ÐÐÐÐÑÐÐ(-ÐÐ): > > Â I suppose that the gettext-friendly solution is something like > > > > Â char ch=toupper(response[0]); > > > > Â if(ch == _("Yes")[0]) > > Â Â ... > > Bad idea. When using UTF-8 locale, and if aptitude will be translated to > Ukrainian (for example), we will have: > Â if(ch == "ÐÐÐ"[0]) > This will be true for all (or most of) cyrillic letters. Ð = "\x0d\xb0" > and all cyrillic letters have first byte \x0d.
Right now aptitude is utterly broken in UTF-8 anyway. When the UTF-8 conversion is done, it should handle input in UTF-8 properly as well (or everything will break, as you pointed out). Daniel -- /----------------- Daniel Burrows <[EMAIL PROTECTED]> -----------------\ | Somewhere, just out of sight, the unicorns are gathering. | \--------------------- A duck! -- http://www.python.org --------------------/
pgpzPYpHeEKjG.pgp
Description: PGP signature