From owner-freebsd-bugs Sat Mar 9 10:40:42 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id A0D8237B402; Sat, 9 Mar 2002 10:40:38 -0800 (PST) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.2/8.12.2) with ESMTP id g29IeXPi076101; Sat, 9 Mar 2002 21:40:36 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.2/8.12.2/Submit) id g29IeVa6076099; Sat, 9 Mar 2002 21:40:32 +0300 (MSK) Date: Sat, 9 Mar 2002 21:40:31 +0300 From: "Andrey A. Chernov" To: Garrett Wollman Cc: Tomas Pluskal , freebsd-i18n@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: multibyte(3) functions not working ? Message-ID: <20020309184030.GA76001@nagual.pp.ru> References: <200203082129.g28LTf644313@khavrinen.lcs.mit.edu> <20020309130309.H5448-100000@s096-n062.tele2.cz> <200203091802.g29I27A56503@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200203091802.g29I27A56503@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Mar 09, 2002 at 13:02:07 -0500, Garrett Wollman wrote: > (See, e.g., JIS X0208.) The wide character repertoire, like the > multibyte encoding, is locale-specific. As POSIX says: "wchar_t Integer type whose range of values can represent distinct wide-character codes for all members of the largest character set specified among the locales supported by the compilation environment: the null character has the code value 0 and each member of the portable character set has a code value equal to its value when used as the lone character in an integer character constant." It supposes that wchar_t _may_ be locale-specific so treating it as Unicode in all cases is plain wrong. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message