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. > else if(ch == _("Dcmdline_prompt_response")[0]) > ... > -- Eugeniy Meshcheryakov Kyiv National Taras Shevchenko University Information and Computing Centre http://icc.univ.kiev.ua
Attachment:
signature.asc
Description: Digital signature