From owner-freebsd-i18n Fri Mar 8 10:31:55 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from richard.eu.org (adsl-213-190-48-15.takas.lt [213.190.48.15]) by hub.freebsd.org (Postfix) with ESMTP id CD31237B402 for ; Fri, 8 Mar 2002 10:31:50 -0800 (PST) Received: (from rch@localhost) by richard.eu.org (8.11.0/8.11.6) id g28IVcJ01067 for freebsd-i18n@FreeBSD.ORG; Fri, 8 Mar 2002 20:31:38 +0200 (EET) (envelope-from rch@richard.eu.org) Date: Fri, 8 Mar 2002 20:31:37 +0200 From: Richard =?utf-8?B?xIxlcGFz?= To: freebsd-i18n@FreeBSD.ORG Subject: Re: multibyte(3) functions not working ? Message-ID: <20020308183137.GB472@richard.eu.org> References: <200203081811.g28IB2t40133@khavrinen.lcs.mit.edu> <20020308191246.H1072-100000@s096-n062.tele2.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020308191246.H1072-100000@s096-n062.tele2.cz> User-Agent: Mutt/1.5.0i X-OS: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri Mar 8 19:16:53 2002 +0100 Tomas Pluskal wrote: >On Fri, 8 Mar 2002, Garrett Wollman wrote: > >> > setlocale(LC_ALL, "cs_CZ.ISO8859-2"); >> > x=wctomb(s, 0x0161); >> >> You have specified a locale which does not have a multibyte encoding. >> >> If you want to use ISO 10646, you'll have to create a locale which >> specifies it. FreeBSD supports UTF-8 (under the obsolete name >> ``UTF-2''), but no locales are provided or supported which use that >> character set. You can translate between ISO 10646 and your locale's >> current character set, ISO 8859-2, using the iconv() library >> function. (This is not currently provided in FreeBSD, but the ports >> collection contains several librararies which implement it.) > >Thanks for response, > >I know that ISO8859-2 is not multibyte encoding, but in fact gnumeric, >gedit (and I believe a lot of other software) expect the multibyte >functions to work anyway (and to work as "translate characters from >current locale's encoding to UNICODE" and reverse). > >Why does this work in linux ? > Wchar does not necessary means unicode. This is Linux-only feature. -- ☻ Ričardas Čepas ☺ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message