Date: Sat, 12 Aug 2006 18:54:31 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: maxim@freebsd.org, freebsd-stable@freebsd.org Subject: Re: setlocale howto Message-ID: <20060812155431.GG25753@deviant.kiev.zoral.com.ua> In-Reply-To: <44DDDCC5.000001.21350@pantene.yandex.ru> References: <44DDDCC5.000001.21350@pantene.yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--t4apE7yKrX2dGgJC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Aug 12, 2006 at 05:51:01PM +0400, Andrey V. Elsukov wrote: > for(i = 0; i < sizeof(buf); i++) > buf[i] = (char)toupper(buf[i]); buf[i] = (char)toupper((unsigned char)buf[i]); Standard integer promotion promotes KOI8-R char codes like 0xd4 into 0xffffffd4. Since such codepoints are not defined for KOI8-R, toupper returns them unchaged, as specified in documentation. --t4apE7yKrX2dGgJC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE3fm2C3+MBN1Mb4gRAqPvAJ9rRpDJ0I9c8z9vnsmwJiqCIm48ZQCeKqek qTa6CKzMyeMuceftpxfi2FA= =2XZL -----END PGP SIGNATURE----- --t4apE7yKrX2dGgJC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060812155431.GG25753>