From owner-freebsd-i18n Sun Sep 3 0:52:52 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from richard.eu.org (osf-dial1.taide.lt [193.219.244.165]) by hub.freebsd.org (Postfix) with ESMTP id 7740937B423 for ; Sun, 3 Sep 2000 00:52:48 -0700 (PDT) Received: (from rch@localhost) by richard.eu.org (8.11.0.Beta1/8.11.0.Beta1) id e834XA701188; Sun, 3 Sep 2000 06:33:10 +0200 (CEST) Date: Sun, 3 Sep 2000 06:33:10 +0200 From: =?UTF-8?Q?Ri=C4=8Dardas_=C4=8Cepas?= To: Trevor Johnson Cc: freebsd-i18n@FreeBSD.ORG Subject: Re: Sun press release Message-ID: <20000903063310.C390@richard.eu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.7i In-Reply-To: ; from trevor@jpj.net on Sat, Sep 02, 2000 at 05:03:54AM -0400 X-OS: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat Sep 2 05:03:54 2000 -0400 Trevor Johnson wrote: > I noticed a press release at > http://www.sun.com/smi/Press/sunflash/2000-08/sunflash.20000829.1.html > that says Sun is planning to release some code, on the 15th, that has to > do with Unicode and with non-right-reading languages such as Arabic. > It's for X but perhaps still of interest to some on this list. You can look at discussion in xfree86 i18n mailing list archive. -- ☻ 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 Sun Sep 3 7:57: 2 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 085CA37B424 for ; Sun, 3 Sep 2000 07:56:51 -0700 (PDT) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id RAA69348; Sun, 3 Sep 2000 17:56:15 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id RAA46114; Sun, 3 Sep 2000 17:55:58 +0300 (EEST) (envelope-from phantom) Date: Sun, 3 Sep 2000 17:55:58 +0300 From: Alexey Zelkin To: "Andrey A. Chernov" Cc: Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000903175558.A45276@ark.cris.net> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000901192017.B29804@nagual.pp.ru>; from ache@nagual.pp.ru on Fri, Sep 01, 2000 at 07:20:17PM +0400 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Fri, Sep 01, 2000 at 07:20:17PM +0400, Andrey A. Chernov wrote: > On Fri, Sep 01, 2000 at 06:52:03PM +0400, Alexander Voropay wrote: > > AFAIK, the presense of any forms of locale "aliasing" does not > > comply current POSIX specifications : > > string=setlocale(LC_xxx, "language_TERRITORY.Codeset"); > > should returns _THE_SAME_ locale name _as requested_. > No, it means that returned string should be not expanded to its full form. > > I.e. setlocale(LC_ALL, "ru") should return "ru" and not "ru_RU.KOI8-R" > and do all expansions internally and invisible to caller. Ok. But how to pass to the application information about expanded form of the locale ? Just some applications use it to build path which contains some kind of data files. There're few possibilties to do it under mentioned restrictions: . make setlocale(LC_XXX, NULL) returning expanded form of the locale name. It will require all applications which need to know expanded form of the locale to call setlocale() twice: setlocale(LC_ALL, ""); expandedlocale = setlocale(LC_CTYPE, NULL); . introduce new function: locale_expand_alias() which should return expanded form of the locale string. I prefer first way because, but not sure about its POSIX/XPG complaince. -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Sep 3 8:10:38 2000 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 4A14C37B423; Sun, 3 Sep 2000 08:10:35 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e83FAXA45616; Sun, 3 Sep 2000 19:10:33 +0400 (MSD) (envelope-from ache) Date: Sun, 3 Sep 2000 19:10:32 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000903191032.A45592@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <20000903175558.A45276@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000903175558.A45276@ark.cris.net>; from phantom@FreeBSD.ORG on Sun, Sep 03, 2000 at 05:55:58PM +0300 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 03, 2000 at 05:55:58PM +0300, Alexey Zelkin wrote: > Ok. But how to pass to the application information about expanded form of > the locale ? Just some applications use it to build path which contains > some kind of data files. There're few possibilties to do it under mentioned > restrictions: I can't imagine situation that application need to know precisely expanded locale form. > . make setlocale(LC_XXX, NULL) returning expanded form of the locale name. I disagree. It is against POSIX. > . introduce new function: locale_expand_alias() which should return > expanded form of the locale string. Maybe, but I don't think it ever needed as I already say above. -- 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 From owner-freebsd-i18n Sun Sep 3 8:22:31 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 4275637B424 for ; Sun, 3 Sep 2000 08:22:28 -0700 (PDT) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id SAA99790; Sun, 3 Sep 2000 18:21:56 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id SAA49374; Sun, 3 Sep 2000 18:21:50 +0300 (EEST) (envelope-from phantom) Date: Sun, 3 Sep 2000 18:21:50 +0300 From: Alexey Zelkin To: "Andrey A. Chernov" Cc: Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000903182150.A49118@ark.cris.net> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <20000903175558.A45276@ark.cris.net> <20000903191032.A45592@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000903191032.A45592@nagual.pp.ru>; from ache@nagual.pp.ru on Sun, Sep 03, 2000 at 07:10:32PM +0400 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Sun, Sep 03, 2000 at 07:10:32PM +0400, Andrey A. Chernov wrote: > > Ok. But how to pass to the application information about expanded form of > > the locale ? Just some applications use it to build path which contains > > some kind of data files. There're few possibilties to do it under mentioned > > restrictions: > > I can't imagine situation that application need to know precisely expanded > locale form. localization of man related stuff, yeah ? :) Locale(1) ? (coming soon) > > . introduce new function: locale_expand_alias() which should return > > expanded form of the locale string. > > Maybe, but I don't think it ever needed as I already say above. -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Sep 3 9:57:58 2000 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 62E6437B423; Sun, 3 Sep 2000 09:57:56 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e83GvtI46064; Sun, 3 Sep 2000 20:57:55 +0400 (MSD) (envelope-from ache) Date: Sun, 3 Sep 2000 20:57:54 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000903205754.A45839@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <20000903175558.A45276@ark.cris.net> <20000903191032.A45592@nagual.pp.ru> <20000903182150.A49118@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000903182150.A49118@ark.cris.net>; from phantom@FreeBSD.ORG on Sun, Sep 03, 2000 at 06:21:50PM +0300 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 03, 2000 at 06:21:50PM +0300, Alexey Zelkin wrote: > > I can't imagine situation that application need to know precisely expanded > > locale form. > > localization of man related stuff, yeah ? :) > Locale(1) ? (coming soon) This is too system-dependend to be called applications, I mean more userland applications. In the system-dependent case non-standard function can be introduced to expand aliases. -- 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 From owner-freebsd-i18n Sun Sep 3 10: 4:28 2000 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 1399537B423; Sun, 3 Sep 2000 10:04:26 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e83H4PA46145; Sun, 3 Sep 2000 21:04:25 +0400 (MSD) (envelope-from ache) Date: Sun, 3 Sep 2000 21:04:24 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000903210424.A46125@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <20000903175558.A45276@ark.cris.net> <20000903191032.A45592@nagual.pp.ru> <20000903182150.A49118@ark.cris.net> <20000903205754.A45839@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000903205754.A45839@nagual.pp.ru>; from ache@nagual.pp.ru on Sun, Sep 03, 2000 at 08:57:54PM +0400 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 03, 2000 at 08:57:54PM +0400, Andrey A. Chernov wrote: > On Sun, Sep 03, 2000 at 06:21:50PM +0300, Alexey Zelkin wrote: > > > I can't imagine situation that application need to know precisely expanded > > > locale form. > > > > localization of man related stuff, yeah ? :) > > Locale(1) ? (coming soon) > > This is too system-dependend to be called applications, I mean more > userland applications. In the system-dependent case non-standard function > can be introduced to expand aliases. Moreover, maybe something like '/usr/sbin/expand_locale_alias' required to allow system-dependend shell or perl processing needed instead of simple taking LANG env. var in non-aliases case. -- 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 From owner-freebsd-i18n Sun Sep 3 10:10:59 2000 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 8EE7137B424; Sun, 3 Sep 2000 10:10:57 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e83HAue46194; Sun, 3 Sep 2000 21:10:56 +0400 (MSD) (envelope-from ache) Date: Sun, 3 Sep 2000 21:10:56 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000903211056.A46167@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <20000903175558.A45276@ark.cris.net> <20000903191032.A45592@nagual.pp.ru> <20000903182150.A49118@ark.cris.net> <20000903205754.A45839@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000903205754.A45839@nagual.pp.ru>; from ache@nagual.pp.ru on Sun, Sep 03, 2000 at 08:57:54PM +0400 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 03, 2000 at 08:57:54PM +0400, Andrey A. Chernov wrote: > On Sun, Sep 03, 2000 at 06:21:50PM +0300, Alexey Zelkin wrote: > > > I can't imagine situation that application need to know precisely expanded > > > locale form. > > > > localization of man related stuff, yeah ? :) > > Locale(1) ? (coming soon) > From the second thought, they don't need to expand aliases, they can operate directly with right names passed as configured input. -- 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 From owner-freebsd-i18n Sun Sep 3 20:42:54 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from fgwmail7.fujitsu.co.jp (fgwmail7.fujitsu.co.jp [192.51.44.37]) by hub.freebsd.org (Postfix) with ESMTP id BABDE37B424; Sun, 3 Sep 2000 20:42:49 -0700 (PDT) Received: from m2.gw.fujitsu.co.jp by fgwmail7.fujitsu.co.jp (8.9.3/3.7W-MX0006-Fujitsu Gateway) id MAA13018; Mon, 4 Sep 2000 12:41:44 +0900 (JST) (envelope-from numa@rp.open.cs.fujitsu.co.jp) Received: from margaux.rp.open.cs.fujitsu.co.jp by m2.gw.fujitsu.co.jp (8.9.3/3.7W-0008-Fujitsu Domain Master) id MAA04568; Mon, 4 Sep 2000 12:41:43 +0900 (JST) Received: (from numa@localhost) by margaux.rp.open.cs.fujitsu.co.jp (8.9.3+3.2W/3.6W) id MAA15473; Mon, 4 Sep 2000 12:41:42 +0900 (JST) Message-Id: <200009040341.MAA15473@margaux.rp.open.cs.fujitsu.co.jp> From: numa@rp.open.cs.fujitsu.co.jp (NUMATA Toshinori) Date: Mon, 4 Sep 2000 12:41:42 +0900 In-Reply-To: <20000901192017.B29804@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: "Andrey A. Chernov" , Alexander Voropay Subject: Re: Request for review: locale aliases support for libc Cc: i18n@FreeBSD.ORG, phantom@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Andrey A. Chernov" wrote: > On Fri, Sep 01, 2000 at 06:52:03PM +0400, Alexander Voropay wrote: >> AFAIK, the presense of any forms of locale "aliasing" does not >> comply current POSIX specifications : >> string=setlocale(LC_xxx, "language_TERRITORY.Codeset"); >> should returns _THE_SAME_ locale name _as requested_. > > > No, it means that returned string should be not expanded to its full form. > > I.e. setlocale(LC_ALL, "ru") should return "ru" and not "ru_RU.KOI8-R" > and do all expansions internally and invisible to caller. In my copy of POSIX.1 standard (ISO/IEC 9945-1:1990) says: 8.1.2 Extensions to setlocale() Function ... 8.1.2.3 Returns A successful call to setlocale() returns a string that corresponds to the locale set. The string returned is such that "a subsequent call with that string and its associated category will restore that part of the process's locale" (C Standard {2}). The string returned shall not be modified by the process, but may be overwritten by a subsequent call to the setlocale() function. This string is not required to be the value of the environment variable used, if one was used. It does not say that the returned value must be the same as the string passed to the setlocale() call, or anything about string expansions. (POSIX does ont specify the format of locale names, so no definition of "locale name expantion" at all.) The only thing the standard specify is that the call: char *locale_string = setlocale(LC_CTYPE, "ru"); must return *some* string that indicates the locale set (if the call was successful) and the subsequent call: setlocale(LC_CTYPE, locale_string); must produce the same result as the call of setlocale(LC_CTYPE, "ru");. (Well, the content of locale_string may be changed by the subsequent calls of setlocale() so the string must be saved to some other buffer.) The string returned may be the same as the string passed (for example, "ru"), may be "expanded" form (for example, "ru_RU.KOI-8R"), or may be some other implementation-specific form. The only requirement is that "a subsequent call with that string and its associated category will restore that part of the process's locale". -- NUMATA Toshinori Planning Dept., Strategic Planning Div., Software Group, FUJITSU LIMITED Phone: +81-45-476-4586 (x4224) Fax: +81-45-476-4749 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Sep 4 3:50:46 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id B74E837B422 for ; Mon, 4 Sep 2000 03:50:38 -0700 (PDT) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id NAA73778; Mon, 4 Sep 2000 13:50:05 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id NAA10302; Mon, 4 Sep 2000 13:49:59 +0300 (EEST) (envelope-from phantom) Date: Mon, 4 Sep 2000 13:49:59 +0300 From: Alexey Zelkin To: NUMATA Toshinori Cc: "Andrey A. Chernov" , Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000904134959.C7702@ark.cris.net> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <200009040341.MAA15473@margaux.rp.open.cs.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200009040341.MAA15473@margaux.rp.open.cs.fujitsu.co.jp>; from numa@rp.open.cs.fujitsu.co.jp on Mon, Sep 04, 2000 at 12:41:42PM +0900 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, Thanks for explanation NUMATA-san! Same is described in Single User Specification. I think we have no problems with locale name expansion returned as result of setlocale(). Andrey ? Alexander ? On Mon, Sep 04, 2000 at 12:41:42PM +0900, NUMATA Toshinori wrote: > "Andrey A. Chernov" wrote: > > On Fri, Sep 01, 2000 at 06:52:03PM +0400, Alexander Voropay wrote: > >> AFAIK, the presense of any forms of locale "aliasing" does not > >> comply current POSIX specifications : > >> string=setlocale(LC_xxx, "language_TERRITORY.Codeset"); > >> should returns _THE_SAME_ locale name _as requested_. > > > > > > No, it means that returned string should be not expanded to its full form. > > > > I.e. setlocale(LC_ALL, "ru") should return "ru" and not "ru_RU.KOI8-R" > > and do all expansions internally and invisible to caller. > > In my copy of POSIX.1 standard (ISO/IEC 9945-1:1990) says: > > 8.1.2 Extensions to setlocale() Function > ... > 8.1.2.3 Returns > > A successful call to setlocale() returns a string that corresponds > to the locale set. The string returned is such that "a subsequent > call with that string and its associated category will restore > that part of the process's locale" (C Standard {2}). The string > returned shall not be modified by the process, but may be > overwritten by a subsequent call to the setlocale() function. > This string is not required to be the value of the environment > variable used, if one was used. > > It does not say that the returned value must be the same as the string > passed to the setlocale() call, or anything about string expansions. > (POSIX does ont specify the format of locale names, so no definition > of "locale name expantion" at all.) > > The only thing the standard specify is that the call: > > char *locale_string = setlocale(LC_CTYPE, "ru"); > > must return *some* string that indicates the locale set (if the call was > successful) and the subsequent call: > > setlocale(LC_CTYPE, locale_string); > > must produce the same result as the call of setlocale(LC_CTYPE, "ru");. > (Well, the content of locale_string may be changed by the subsequent > calls of setlocale() so the string must be saved to some other buffer.) > > The string returned may be the same as the string passed (for example, > "ru"), may be "expanded" form (for example, "ru_RU.KOI-8R"), or may be > some other implementation-specific form. The only requirement is that > "a subsequent call with that string and its associated category will > restore that part of the process's locale". > > -- > NUMATA Toshinori > Planning Dept., Strategic Planning Div., Software Group, FUJITSU LIMITED > Phone: +81-45-476-4586 (x4224) Fax: +81-45-476-4749 -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Sep 4 3:55:51 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from alpha.dante.org.uk (alpha.dante.org.uk [193.63.211.19]) by hub.freebsd.org (Postfix) with ESMTP id D5C3037B43E; Mon, 4 Sep 2000 03:55:47 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13VtuU-00002D-00; Mon, 04 Sep 2000 11:55:30 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13VtuM-0004ZO-00; Mon, 04 Sep 2000 11:55:23 +0100 Message-ID: <39B37F9A.395012F3@dante.org.uk> Date: Mon, 04 Sep 2000 11:55:22 +0100 From: Konstantin Chuguev Organization: Delivery of Advanced Networking Service to Europe Ltd. X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en, ru MIME-Version: 1.0 To: "Andrey A. Chernov" , Boris Popov , freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG Subject: Re: Proposal to include iconv library in the base system. References: <20000901185945.A29804@nagual.pp.ru> <39AFD666.880FE6C@dante.org.uk> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Konstantin Chuguev wrote: > I will try my best to produce the final version 1.0 of the library and > conversion modules before Monday. > Sorry, I was a bit too optimistic here. Still catching bugs... -- * * Konstantin Chuguev - Application Engineer * * Francis House, 112 Hills Road * Cambridge CB2 1PQ, United Kingdom D A N T E WWW: http://www.dante.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Sep 5 4:55: 2 2000 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 16E4137B423; Tue, 5 Sep 2000 04:55:00 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e85BsuG60181; Tue, 5 Sep 2000 15:54:56 +0400 (MSD) (envelope-from ache) Date: Tue, 5 Sep 2000 15:54:55 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: NUMATA Toshinori , Alexander Voropay , i18n@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000905155454.A60157@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> <20000901192017.B29804@nagual.pp.ru> <200009040341.MAA15473@margaux.rp.open.cs.fujitsu.co.jp> <20000904134959.C7702@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000904134959.C7702@ark.cris.net>; from phantom@FreeBSD.ORG on Mon, Sep 04, 2000 at 01:49:59PM +0300 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Sep 04, 2000 at 01:49:59PM +0300, Alexey Zelkin wrote: > Same is described in Single User Specification. I think we have no > problems with locale name expansion returned as result of setlocale(). > Andrey ? Alexander ? I agree. I was thinking opposite due to my misreading of POSIX specs. -- 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 From owner-freebsd-i18n Thu Sep 7 9:13:49 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from alpha.dante.org.uk (alpha.dante.org.uk [193.63.211.19]) by hub.freebsd.org (Postfix) with ESMTP id 0393137B423 for ; Thu, 7 Sep 2000 09:13:47 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13X4J5-0000HV-00; Thu, 07 Sep 2000 17:13:43 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13X4J2-00022e-00; Thu, 07 Sep 2000 17:13:40 +0100 Message-ID: <39B7BEB4.DC4739B@dante.org.uk> Date: Thu, 07 Sep 2000 17:13:40 +0100 From: Konstantin Chuguev Organization: Delivery of Advanced Networking Service to Europe Ltd. X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en, ru MIME-Version: 1.0 To: "Michael C. Wu" Cc: freebsd-i18n@FreeBSD.ORG Subject: Re: Proposal to include iconv library in the base system. References: <20000901185945.A29804@nagual.pp.ru> <39AFD666.880FE6C@dante.org.uk> <20000905114918.A62975@peorth.iteration.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Michael C. Wu" wrote: > On Fri, Sep 01, 2000 at 05:16:38PM +0100, Konstantin Chuguev scribbled: > | Perhaps, minus CJK charsets due to their size. I don't know if there is a > | need of CJK charset conversion for filesystems. > | All other modules can easily be installed from ports/packages. > > Yes, there is a need. :) Well, I find it reasonable, as the euc-(cn|jp|kr|tw) locales are in FreeBSD. Moving towards Unicode support in FreeBSD would probably mean all the locale stuff being converted to Unicode, UFS file names in Unicode etc. Then it IS important to have Unicode-EUC converters in the distribution. But including charset tables required for these encodings would increase the total size of necessary modules to about 1MB (binaries). I am not sure if it is acceptable for including iconv into the distribution. As I said before, I'm going to release iconv-1.0 as a port first. There are 3 or 4 separate ports: the first one contains the library itself and the modules of the charsets supported in FreeBSD locale. The others are just additional charsets. Then, if someone of the FreeBSD core team has a look at the main port and decides it is worth integration into the distribution/libc; I would really like to have additional ports working unchanged (except for removing BUILD_DEPENDS from the ports' Makefiles). That means, before releasing a port I would like to know if this 1MB of a new stuff in the distribution is theoretically OK. Authoritative guys, please respond. FYI, the second "chunk" of charsets and encodings, which are not required for FreeBSD internals itself (UTF-7, ISO-2022-*, Windows-125*, all other charsets from the Unicode site), occupies also about 1MB. The last set - remaining charsets from RFC1345, mostly unused nowadays - is about 700K. -- * * Konstantin Chuguev - Application Engineer * * Francis House, 112 Hills Road * Cambridge CB2 1PQ, United Kingdom D A N T E WWW: http://www.dante.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message