From owner-freebsd-i18n Sun Mar 3 17:44: 2 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from zeus.ispmx.com (customer-148-235-161-194.uninet.net.mx [148.235.161.194]) by hub.freebsd.org (Postfix) with ESMTP id E170037B402 for ; Sun, 3 Mar 2002 17:43:56 -0800 (PST) Received: from bsd2rrvyesj23i (du-148-221-120-121.prodigy.net.mx [148.221.120.121]) by zeus.ispmx.com (8.9.3/8.8.7) with SMTP id UAA02832; Sun, 3 Mar 2002 20:08:31 -0600 Message-ID: <001001c1c2e3$914fb7d0$7978dd94@bsd2rrvyesj23i> From: =?iso-8859-1?Q?Eduardo_Ru=EDz?= To: "Greg Magnusson" Cc: References: <0GSF00AQA6HZ7M@lancer.sasktel.net> Subject: Re: need help! www.bsd.org.mx Date: Sun, 3 Mar 2002 19:45:12 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01C1C2EB.EEF8CB30" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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 This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C1C2EB.EEF8CB30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi well, i just want to know if www.bsd.org.mx its legal, i wanna buy the domain because i wanna spread the project in mexico im doing man pages and some programs for = newbies, (netbsd,freebsd,openbsd) thanks Eduardo Ruiz ------=_NextPart_000_0006_01C1C2EB.EEF8CB30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi well, i just want to know if www.bsd.org.mx
 
its legal, i wanna buy the domain because i=20 wanna
 
spread the project in mexico im doing man pages = and some=20 programs for newbies, (netbsd,freebsd,openbsd)
 
thanks
 
Eduardo = Ruiz
------=_NextPart_000_0006_01C1C2EB.EEF8CB30-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Mar 8 4:50:27 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from s096-n062.tele2.cz (s096-n062.tele2.cz [213.246.96.62]) by hub.freebsd.org (Postfix) with ESMTP id DDB4537B416; Fri, 8 Mar 2002 04:50:18 -0800 (PST) Received: from localhost (plusik@localhost) by s096-n062.tele2.cz (8.11.6/8.11.6) with ESMTP id g28CmIp34561; Fri, 8 Mar 2002 13:48:18 +0100 (CET) (envelope-from plusik@pohoda.cz) X-Authentication-Warning: s096-n062.tele2.cz: plusik owned process doing -bs Date: Fri, 8 Mar 2002 13:48:18 +0100 (CET) From: Tomas Pluskal X-X-Sender: plusik@s096-n062.tele2.cz To: freebsd-i18n@freebsd.org, Subject: multibyte(3) functions not working ? Message-ID: <20020308134119.J214-100000@s096-n062.tele2.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hello, I was trying to make gnumeric & gedit print Czech characters on my freebsd system, and after few hours of investigation I found out that the problem is probably in freebsd. Here is a simple program, that should convert unicode character 0x161 (it's "s" with hook above) to multibyte (in this case "singlebyte") character, but it outputs just "a". Why ? I have tried it on a linux box also, and there it works perfectly. ------ test.c ----------------------------- #include #include int main(int argc, char *argv[]) { char s[1024]; int x; setlocale(LC_ALL, "cs_CZ.ISO8859-2"); x=wctomb(s, 0x0161); printf("char count: %d\nchar: %c\n",x,s[0]); return 0; } ------------------------------------------- Thanks Tomas Pluskal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Mar 8 10:11:14 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 223B237B404; Fri, 8 Mar 2002 10:11:09 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.6) id g28IB2t40133; Fri, 8 Mar 2002 13:11:02 -0500 (EST) (envelope-from wollman) Date: Fri, 8 Mar 2002 13:11:02 -0500 (EST) From: Garrett Wollman Message-Id: <200203081811.g28IB2t40133@khavrinen.lcs.mit.edu> To: Tomas Pluskal Cc: freebsd-i18n@FreeBSD.ORG, Subject: multibyte(3) functions not working ? In-Reply-To: <20020308134119.J214-100000@s096-n062.tele2.cz> References: <20020308134119.J214-100000@s096-n062.tele2.cz> 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 < said: > 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.) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Mar 8 10:19:30 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from s096-n062.tele2.cz (s096-n062.tele2.cz [213.246.96.62]) by hub.freebsd.org (Postfix) with ESMTP id 6CCDA37B402; Fri, 8 Mar 2002 10:19:10 -0800 (PST) Received: from localhost (plusik@localhost) by s096-n062.tele2.cz (8.11.6/8.11.6) with ESMTP id g28IGrf01081; Fri, 8 Mar 2002 19:16:53 +0100 (CET) (envelope-from plusik@pohoda.cz) X-Authentication-Warning: s096-n062.tele2.cz: plusik owned process doing -bs Date: Fri, 8 Mar 2002 19:16:53 +0100 (CET) From: Tomas Pluskal X-X-Sender: plusik@s096-n062.tele2.cz To: Garrett Wollman Cc: freebsd-i18n@FreeBSD.ORG, Subject: Re: multibyte(3) functions not working ? In-Reply-To: <200203081811.g28IB2t40133@khavrinen.lcs.mit.edu> Message-ID: <20020308191246.H1072-100000@s096-n062.tele2.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 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 ? Tomas Pluskal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message 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 From owner-freebsd-i18n Fri Mar 8 13:29:48 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 08D8B37B404; Fri, 8 Mar 2002 13:29:45 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.6) id g28LTf644313; Fri, 8 Mar 2002 16:29:41 -0500 (EST) (envelope-from wollman) Date: Fri, 8 Mar 2002 16:29:41 -0500 (EST) From: Garrett Wollman Message-Id: <200203082129.g28LTf644313@khavrinen.lcs.mit.edu> To: Tomas Pluskal Cc: freebsd-i18n@FreeBSD.ORG, Subject: Re: multibyte(3) functions not working ? In-Reply-To: <20020308191246.H1072-100000@s096-n062.tele2.cz> References: <200203081811.g28IB2t40133@khavrinen.lcs.mit.edu> <20020308191246.H1072-100000@s096-n062.tele2.cz> 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 < said: > 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). They are broken. (Or perhaps they are relying on new behavior in C99, but I rather doubt it.) > Why does this work in linux ? Because Linux (or rather, glibc) implements it the way these broken programs expect. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Mar 9 3:20: 5 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from s096-n062.tele2.cz (s096-n062.tele2.cz [213.246.96.62]) by hub.freebsd.org (Postfix) with ESMTP id C5E8E37B405; Sat, 9 Mar 2002 03:19:55 -0800 (PST) Received: from localhost (plusik@localhost) by s096-n062.tele2.cz (8.11.6/8.11.6) with ESMTP id g29BHiO05360; Sat, 9 Mar 2002 12:17:44 +0100 (CET) (envelope-from plusik@pohoda.cz) X-Authentication-Warning: s096-n062.tele2.cz: plusik owned process doing -bs Date: Sat, 9 Mar 2002 12:17:44 +0100 (CET) From: Tomas Pluskal X-X-Sender: plusik@s096-n062.tele2.cz To: Garrett Wollman Cc: freebsd-i18n@FreeBSD.ORG, Subject: Re: multibyte(3) functions not working ? In-Reply-To: <200203082129.g28LTf644313@khavrinen.lcs.mit.edu> Message-ID: <20020309121650.J5358-100000@s096-n062.tele2.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 > > 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). > > They are broken. (Or perhaps they are relying on new behavior in C99, > but I rather doubt it.) OK, I accept it, will try to send bugreport to gnome team. bye Tomas Pluskal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Mar 9 4:12:29 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from s096-n062.tele2.cz (s096-n062.tele2.cz [213.246.96.62]) by hub.freebsd.org (Postfix) with ESMTP id 2CEA937B417; Sat, 9 Mar 2002 04:12:24 -0800 (PST) Received: from localhost (plusik@localhost) by s096-n062.tele2.cz (8.11.6/8.11.6) with ESMTP id g29CAN605527; Sat, 9 Mar 2002 13:10:23 +0100 (CET) (envelope-from plusik@pohoda.cz) X-Authentication-Warning: s096-n062.tele2.cz: plusik owned process doing -bs Date: Sat, 9 Mar 2002 13:10:23 +0100 (CET) From: Tomas Pluskal X-X-Sender: plusik@s096-n062.tele2.cz To: Garrett Wollman Cc: freebsd-i18n@FreeBSD.ORG, Subject: Re: multibyte(3) functions not working ? In-Reply-To: <200203082129.g28LTf644313@khavrinen.lcs.mit.edu> Message-ID: <20020309130309.H5448-100000@s096-n062.tele2.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 > They are broken. (Or perhaps they are relying on new behavior in C99, > but I rather doubt it.) I am forwarding a message from Vlad Harchev : ========================================================================== Hi, I believe BSD guys are just wrong. There is no trace in any specs (I checked Unix98 specs) that mbstowcs and friends should work only for multibyte encodings. So it should be treated as "should work for any encoding". It's also obvious that singlebyte encoding can be considered multibyte (but without shift states) - so their statement could work against themselves. BSD guys should fix locale support in their libc or modify all my patches not to use some other portable and working way (probably using iconv(3)). I won't help with this for free. Best regards, -Vlad ============================================================================ I have a simple question: according to man pages, the wctomb() function should convert wide-char to its multibyte equivalent. When I pass a wide-char (like any non-latin1 character, for example 0x161 in unicode) to this function, it should return its multibyte equivalent. But the character is not in ascii (latin1) table. There are many encodings which contain this character, and all of them contain it as just one byte (as Vlad said, singlebyte is also multibyte). So the function should return the one byte character in one of the possible encodings, but which one ? The current locale's encoding seems to me like a good choice. Tomas Pluskal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Mar 9 10: 2:18 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id E889437B404; Sat, 9 Mar 2002 10:02:12 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.6) id g29I27A56503; Sat, 9 Mar 2002 13:02:07 -0500 (EST) (envelope-from wollman) Date: Sat, 9 Mar 2002 13:02:07 -0500 (EST) From: Garrett Wollman Message-Id: <200203091802.g29I27A56503@khavrinen.lcs.mit.edu> To: Tomas Pluskal Cc: freebsd-i18n@FreeBSD.ORG, Subject: Re: multibyte(3) functions not working ? In-Reply-To: <20020309130309.H5448-100000@s096-n062.tele2.cz> References: <200203082129.g28LTf644313@khavrinen.lcs.mit.edu> <20020309130309.H5448-100000@s096-n062.tele2.cz> 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 < said: > I have a simple question: according to man pages, the wctomb() function > should convert wide-char to its multibyte equivalent. When I pass a > wide-char (like any non-latin1 character, for example 0x161 in unicode) to > this function, it should return its multibyte equivalent. In the case of the ISO 8859-2 repertoire, all of the wide characters are the same as the narrow characters are the same as the multibyte characters, so wctomb() should not change the value of its argument at all. Somehow, someone has gotten the bizarre idea that wide characters are automatically ISO 10646 -- this is simply not true. (See, e.g., JIS X0208.) The wide character repertoire, like the multibyte encoding, is locale-specific. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Mar 9 10:40:42 2002 Delivered-To: freebsd-i18n@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-i18n@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-i18n" in the body of the message