From owner-freebsd-i18n Tue Aug 29 4: 1:32 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 665F237B43C; Tue, 29 Aug 2000 04:01:16 -0700 (PDT) Received: from ark.cris.net (root@ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id OAA67419; Tue, 29 Aug 2000 14:00:54 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id OAA30069; Tue, 29 Aug 2000 14:01:02 +0300 (EEST) (envelope-from phantom) Date: Tue, 29 Aug 2000 14:01:02 +0300 From: Alexey Zelkin To: i18n@FreeBSD.org, current@FreeBSD.org Cc: ache@FreeBSD.org Subject: Request for review: locale aliases support for libc Message-ID: <20000829140102.A29555@ark.cris.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" X-Mailer: Mutt 1.0i X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii hi, please review and comment -- This is set of patches for libc which allow user to use locale aliases. Currently it's only possible to use locale aliases by creating one more symbolic link in /usr/share/locale, i.e. if I want to have locale named "ru" I have to: ln -s /usr/share/locale/ru_RU.KOI8-R /usr/share/locale/ru With this set of patches we need no anymore to create any symbolic links, but edit /usr/share/locale/locale.aliases file. Format of this file is quite simple: All lines which starting from '#' or empty lines are ignored. Example locale.aliases file is included to this patchset. -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ --RnlQjJ0d97Da+TV1 Content-Type: application/x-tar-gz Content-Disposition: attachment; filename="libc_locale_alias.tgz" Content-Transfer-Encoding: base64 H4sIAFKJqzkAA+08a3vaRrP9in7FBnJqMJibjR3jOK0Mcq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jJ3wM4nVIX4G2Xsd5szbNO7t1jXe9gz xfpe/OcF0a9GSUf8C+Q73qJlTfi4JZ+aE6XK0uUdMeFsCrBadR0oyeGkIv7d/BLisIkvV6+x cl37OUiFWFValawpUckt2Ayps/auII8N5gnJe2EeBoi+b1uScrZDdvx1crVkhMxES9JbXgav q+kWlqOwmuNCKX3HBABumFTY+LiLxZFQHNHDhnAYZCyU1Xsmpy7kxWxJXF5i77mAjf8JLVjA t+YLm6JsL5OqZRp4lXsJXNhJpbyCisS22VtrX9gVfZ/pn/3z563CFrZlli+3fdZTsa7glMV2 j/LRwAUzX76hF/EfDE34Py23fBLFlqokdfg7cE7wltqmO6fP/kFh9Nv17fp2fbu+Xd+u/1PX /wI5UwPOAFAAAA== --RnlQjJ0d97Da+TV1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Aug 29 4:19:30 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 4667737B440; Tue, 29 Aug 2000 04:19:26 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e7TBJ4R90522; Tue, 29 Aug 2000 15:19:04 +0400 (MSD) (envelope-from ache) Date: Tue, 29 Aug 2000 15:19:00 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829151857.A90464@nagual.pp.ru> References: <20000829140102.A29555@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: <20000829140102.A29555@ark.cris.net>; from phantom@cris.crimea.ua on Tue, Aug 29, 2000 at 02:01:02PM +0300 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 29, 2000 at 02:01:02PM +0300, Alexey Zelkin wrote: > please review and comment By quick looking I found this: 1) strtok() should not be used in libraries, use strsep() instead. 2) There is security hole with LOCALE_ALIASES_PATH env. issetugid() check required. 3) The same functionality should be added to NLS (catgets() etc.) to make it really working. -- 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 Tue Aug 29 4:28: 3 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 E463237B422; Tue, 29 Aug 2000 04:27:58 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e7TBRdV90594; Tue, 29 Aug 2000 15:27:39 +0400 (MSD) (envelope-from ache) Date: Tue, 29 Aug 2000 15:27:34 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829152733.A90577@nagual.pp.ru> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@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: <20000829151857.A90464@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, Aug 29, 2000 at 03:19:00PM +0400 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 29, 2000 at 03:19:00PM +0400, Andrey A. Chernov wrote: > By quick looking I found this: > > 1) strtok() should not be used in libraries, use strsep() instead. > > 2) There is security hole with LOCALE_ALIASES_PATH env. issetugid() check > required. > > 3) The same functionality should be added to NLS (catgets() etc.) to make > it really working. 4) Not lstat() but stat() should be used for existence checking. -- 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 Tue Aug 29 7:27:52 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 2B61037B424; Tue, 29 Aug 2000 07:27: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 RAA00133; Tue, 29 Aug 2000 17:27:07 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id RAA84032; Tue, 29 Aug 2000 17:26:51 +0300 (EEST) (envelope-from phantom) Date: Tue, 29 Aug 2000 17:26:51 +0300 From: Alexey Zelkin To: "Andrey A. Chernov" Cc: i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829172651.A80899@ark.cris.net> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" X-Mailer: Mutt 1.0i In-Reply-To: <20000829152733.A90577@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, Aug 29, 2000 at 03:27:34PM +0400 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii hi, I have updated patchset. libc/nls part is comming soon. * Synchronize behaviours for LOCALE_ALIASES_PATH and LOCALE_PATH handling. If attempt to open customized locale.aliases (declared by env variable LOCALE_ALIASES_PATH) is failed -- don't try to use default system locale.aliases instead. * Fix potential security hole noted by ache@ -- use issetugid(). * Use stat() instead of lstat() for locale files existence checking. * Slight optimization -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ --3V7upXqbjpZ4EhLz Content-Type: application/x-tar-gz Content-Disposition: attachment; filename="locale_aliases_patchset2.tgz" Content-Transfer-Encoding: base64 H4sIAOe4qzkAA+07a3faSLL5Kv2KjslNwIinjR84zkbGsq0NBl8EyXgmOVoZGqOxkDiSwJNk /d9vVXcLJBBOZsNk7561joOkqup6d/VDnYkV9kcBDUvP/rqL7Jb3azXyjJDKfq2Cd7jK4i5e yH6lVt3f2a3uVoGsUtvbeUZqf6FO82sahJZPyLPJyHJDb7yW7n5EqfMzFPq51ySKv+XYVkCD Yn/zMirl8t7u7rr4Vyr71f0o/pVqDXKhsrO7X3lGyptXZfX6L49/absgk23S8Caffft2FJJs I0eq5XKZqA79g34mv1LnznYV8lo46G3ft4OiS8M3CjY07PGQ+t7EcxTS8O0xtRTS8+8s26VF AjwcwtgGxKcB9Wd0UMRW+K9DB3YQ+vbNNLQ9l1jugEwDSmyXBN7U71MGubFdy/9Mhp4/DhRy b4cj4vns7k1D5DL2BvbQ7lvIQyGWT8mE+mM7DOmATHxvZg/gIRxZIfxQ4OM43r3t3pK+5w5s bBQgF2w3pmEdnyvFJdUC4g0jnfreACghZ8CeEIxkXK0bb4Yo4UJkApfrhXafKkBhB8QBfshm IZaZl9QJhPYdC3zoMydVVxUBgTGPRIqAnYMpKPfX6EK4lYLTwOtPx9QNrShoJYiHB3ifjK2Q +rblBAvHs4Ah47gZ8wzoXugGMdpn3Q9qRyPwfNVpv9dPtVNyck3UpvaLdk1+1Zrv9BZRW6ek 0W51O/pJr9vuGOQf/1ANaPLqFTJCrNq6JtovVx3NMEi7Q/TLq6YOnIB1R211dc1QiN5qNHun eutcIcCFtNpd0tQv9S6QddsKqKMhs9WWpH1GLrVO4wJe1RO9qXevmcgzvdtCcWcgTyVXaqer N3pNtUOuep2rtsG4oWWnutFoqvqldgpdAoxptYn2Xmt1iXGhNpsol6i97gVwgb+ElScaaKie NBkrJgasPNU7WqOL5iyeGuA2UK6pEONKa+j4AO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0P83Wm1vTO7Knckh7A pRUIvCwD5f7I5h1I+jIyGy2W619GS6/wlIAgqPuBg7ofiif2be1PnK98up6up+vperqerqfr 6Xq6nq6n6+l6up6u/w/X/wHdLpDQAFAAAA== --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Aug 29 8: 1:29 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 60C6137B423; Tue, 29 Aug 2000 08:01:25 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e7TF0mL91666; Tue, 29 Aug 2000 19:00:48 +0400 (MSD) (envelope-from ache) Date: Tue, 29 Aug 2000 19:00:47 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829190047.A91611@nagual.pp.ru> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@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: <20000829172651.A80899@ark.cris.net>; from phantom@cris.crimea.ua on Tue, Aug 29, 2000 at 05:26:51PM +0300 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 29, 2000 at 05:26:51PM +0300, Alexey Zelkin wrote: > I have updated patchset. libc/nls part is comming soon. Why you always check LC_CTYPE existance only? It may not exist but other locale parts, f.e. LC_TIME are still valid. It is not required to have LC_CTYPE for locale. You need to check LC_* existence corresponding to setlocale() request made. -- 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 Tue Aug 29 8:25: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 F23B337B42C; Tue, 29 Aug 2000 08:25:23 -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 SAA66823; Tue, 29 Aug 2000 18:25:04 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id SAA01172; Tue, 29 Aug 2000 18:24:49 +0300 (EEST) (envelope-from phantom) Date: Tue, 29 Aug 2000 18:24:49 +0300 From: Alexey Zelkin To: "Andrey A. Chernov" Cc: i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829182449.A142@ark.cris.net> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000829190047.A91611@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, Aug 29, 2000 at 07:00:47PM +0400 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Tue, Aug 29, 2000 at 07:00:47PM +0400, Andrey A. Chernov wrote: > Why you always check LC_CTYPE existance only? It may not exist but other > locale parts, f.e. LC_TIME are still valid. It is not required to have > LC_CTYPE for locale. I just randomly selected one of files which is exists in locale directory and my check have only target to understand -- is given locale name valid locale or its alias. > You need to check LC_* existence corresponding to setlocale() request > made. What to check if LC_ALL request is given ? -- /* 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 Tue Aug 29 8:36:19 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 C340D37B422; Tue, 29 Aug 2000 08:36:15 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13TnPo-0006og-00; Tue, 29 Aug 2000 16:35:08 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13TnPk-0000HT-00; Tue, 29 Aug 2000 16:35:04 +0100 Message-ID: <39ABD828.3E56A782@dante.org.uk> Date: Tue, 29 Aug 2000 16:35:04 +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: Alexey Zelkin Cc: "Andrey A. Chernov" , i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexey Zelkin wrote: > > You need to check LC_* existence corresponding to setlocale() request > > made. > > What to check if LC_ALL request is given ? > LC_ALL overrides all other LC_* variables. If it is set, there is no need to check anything else. Then you should check all other LC_*, and then LANG. -- * * 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 Aug 29 9: 0:48 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 0F14C37B423; Tue, 29 Aug 2000 09:00:42 -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 TAA11210; Tue, 29 Aug 2000 19:00:23 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id TAA06957; Tue, 29 Aug 2000 19:00:08 +0300 (EEST) (envelope-from phantom) Date: Tue, 29 Aug 2000 19:00:08 +0300 From: Alexey Zelkin To: Konstantin Chuguev Cc: "Andrey A. Chernov" , i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829190008.A5824@ark.cris.net> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> <39ABD828.3E56A782@dante.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <39ABD828.3E56A782@dante.org.uk>; from Konstantin.Chuguev@dante.org.uk on Tue, Aug 29, 2000 at 04:35:04PM +0100 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Tue, Aug 29, 2000 at 04:35:04PM +0100, Konstantin Chuguev wrote: > > > You need to check LC_* existence corresponding to setlocale() request > > > made. > > > > What to check if LC_ALL request is given ? > LC_ALL overrides all other LC_* variables. If it is set, there is no need to > check anything else. > Then you should check all other LC_*, and then LANG. As I understand you're answering in concept, but we are talking about exact case right now (see may patches attached to previous letter) I am trying to realize "is requested locale physicaly present on this system" or it's just an alias. Currently I am just testing presence of /usr/share/locale/$requested_locale/LC_CTYPE and make decision depends on stat(2) return value. -- /* 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 Tue Aug 29 9:20:52 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 C5F3F37B422; Tue, 29 Aug 2000 09:20:48 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13To7H-0007Cp-00; Tue, 29 Aug 2000 17:20:03 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13To7A-0000Hr-00; Tue, 29 Aug 2000 17:19:56 +0100 Message-ID: <39ABE2AC.CD4C68CF@dante.org.uk> Date: Tue, 29 Aug 2000 17:19:56 +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: Alexey Zelkin Cc: "Andrey A. Chernov" , i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> <39ABD828.3E56A782@dante.org.uk> <20000829190008.A5824@ark.cris.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexey Zelkin wrote: > > > > You need to check LC_* existence corresponding to setlocale() request > > > > made. > > > > > > What to check if LC_ALL request is given ? > > > LC_ALL overrides all other LC_* variables. If it is set, there is no need to > > check anything else. > > > Then you should check all other LC_*, and then LANG. > > As I understand you're answering in concept, but we are talking about > exact case right now (see may patches attached to previous letter) > > I am trying to realize "is requested locale physicaly present on this system" > or it's just an alias. Currently I am just testing presence of > /usr/share/locale/$requested_locale/LC_CTYPE and make decision depends > on stat(2) return value. > Perhaps you should check presence of any of the following files in a locale directory: LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_TIME, and proceed if any of them has been found... -- * * 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 Aug 29 9:23:48 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 7823337B43C; Tue, 29 Aug 2000 09:23:43 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e7TGNZv92357; Tue, 29 Aug 2000 20:23:35 +0400 (MSD) (envelope-from ache) Date: Tue, 29 Aug 2000 20:23:34 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829202334.A92105@nagual.pp.ru> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@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: <20000829182449.A142@ark.cris.net>; from phantom@cris.crimea.ua on Tue, Aug 29, 2000 at 06:24:49PM +0300 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 29, 2000 at 06:24:49PM +0300, Alexey Zelkin wrote: > > You need to check LC_* existence corresponding to setlocale() request > > made. > > What to check if LC_ALL request is given ? Just repeat the same procedure as regular algorithm gives for LC_ALL processing. -- 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 Tue Aug 29 9:45:35 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 CF8AA37B43C; Tue, 29 Aug 2000 09:45: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 TAA64308; Tue, 29 Aug 2000 19:45:10 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id TAA13873; Tue, 29 Aug 2000 19:44:55 +0300 (EEST) (envelope-from phantom) Date: Tue, 29 Aug 2000 19:44:55 +0300 From: Alexey Zelkin To: Konstantin Chuguev Cc: "Andrey A. Chernov" , i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000829194455.A13473@ark.cris.net> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> <39ABD828.3E56A782@dante.org.uk> <20000829190008.A5824@ark.cris.net> <39ABE2AC.CD4C68CF@dante.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <39ABE2AC.CD4C68CF@dante.org.uk>; from Konstantin.Chuguev@dante.org.uk on Tue, Aug 29, 2000 at 05:19:56PM +0100 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Tue, Aug 29, 2000 at 05:19:56PM +0100, Konstantin Chuguev wrote: > Perhaps you should check presence of any of the following files in a locale > directory: > LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_TIME, LC_NUMERIC ? :) > and proceed if any of them has been found... Sure. I do it already as you can see from patches. -- /* 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 Tue Aug 29 11:55:55 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 0033C37B422; Tue, 29 Aug 2000 11:55:51 -0700 (PDT) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 7523A4F17; Tue, 29 Aug 2000 11:55:51 -0700 (PDT) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id LAA08863; Tue, 29 Aug 2000 11:55:51 -0700 (PDT) Message-ID: <39AC0737.CBC4201E@cup.hp.com> Date: Tue, 29 Aug 2000 14:55:51 -0400 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Alexey Zelkin Cc: Konstantin Chuguev , "Andrey A. Chernov" , i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> <39ABD828.3E56A782@dante.org.uk> <20000829190008.A5824@ark.cris.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexey Zelkin wrote: > > I am trying to realize "is requested locale physicaly present on this system" > or it's just an alias. Can you not revert the test: if the locale is present in the alias file, then it obviously is an alias; otherwise it should be present on the system? Just a quick thought... -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Aug 29 12:14: 5 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 682BD37B424; Tue, 29 Aug 2000 12:14:01 -0700 (PDT) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 636B24D06; Tue, 29 Aug 2000 12:14:00 -0700 (PDT) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id MAA09680; Tue, 29 Aug 2000 12:14:00 -0700 (PDT) Message-ID: <39AC0B78.B5151E60@cup.hp.com> Date: Tue, 29 Aug 2000 15:14:00 -0400 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Alexey Zelkin , Konstantin Chuguev , "Andrey A. Chernov" , i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> <39ABD828.3E56A782@dante.org.uk> <20000829190008.A5824@ark.cris.net> <39AC0737.CBC4201E@cup.hp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marcel Moolenaar wrote: > > Alexey Zelkin wrote: > > > > I am trying to realize "is requested locale physicaly present on this system" > > or it's just an alias. > > Can you not revert the test: if the locale is present in the alias file, > then it obviously is an alias; otherwise it should be present on the > system? > > Just a quick thought... Ignore me. I haven't had enough coffee yet... -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 1 7:47:48 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id 2E73737B42C; Fri, 1 Sep 2000 07:47:41 -0700 (PDT) Received: by relay.butya.kz (Postfix, from userid 1000) id 0D1A5288AF; Fri, 1 Sep 2000 21:47:38 +0700 (ALMST) Received: from localhost (localhost [127.0.0.1]) by relay.butya.kz (Postfix) with ESMTP id 035A428775; Fri, 1 Sep 2000 21:47:37 +0700 (ALMST) Date: Fri, 1 Sep 2000 21:47:37 +0700 (ALMST) From: Boris Popov To: freebsd-arch@freebsd.org, freebsd-i18n@freebsd.org Cc: ache@freebsd.org Subject: CFR: iconv functions (was: Proposal to include iconv library in the base system) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 24 Aug 2000, Boris Popov wrote: > Proposal to include iconv library and iconv(1) program in the base system. > > This library of functions and its companion iconv program provide > converts between various single-byte and multibyte charsets. These iconv* > functions are essential in the mixed networks and on local machines with > multiple charsets. Ok, it seems that I can comment on all questions by myself: > The questionable part is a which set of character sets should be > included in the base system and which should be supplied as packages. Initially only library code needs to be imported, and the rest supplied as ports/packages. > Secondly, where should the functions be placed? Initially, the iconv > library was a separate file (libiconv*). However, it seems that > Solaris has the library in libc and Linux in glibc. I do not > know how HPUX does this. libc seems to be the right place for iconv* functions. > And the third question is where I should place the source code for > character conversion schemes in the source tree. This is no longer an issue because CCS'es will be supplied as ports for now. If nobody objects I'm going to commit iconv library at the end of next week as part of the smbfs import. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 1 7:51: 4 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from mx.globalone.ru (mx.globalone.ru [194.84.254.251]) by hub.freebsd.org (Postfix) with ESMTP id 5089237B42C for ; Fri, 1 Sep 2000 07:51:01 -0700 (PDT) Received: from hq.globalone.ru (hq.globalone.ru [172.16.38.5]) by mx.globalone.ru (8.9.3/8.9.3) with ESMTP id SAA19617 for ; Fri, 1 Sep 2000 18:50:59 +0400 Received: from host205.spb.in.rosprin.ru ([172.17.13.205]) by hq.globalone.ru (Netscape Messaging Server 4.15) with SMTP id G07QPU00.UL4 for ; Fri, 1 Sep 2000 18:53:54 +0400 Message-ID: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> Reply-To: "Alexander Voropay" From: "Alexander Voropay" To: Subject: Re: Request for review: locale aliases support for libc Date: Fri, 1 Sep 2000 18:52:03 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexey Zelkin wrote: >I am trying to realize "is requested locale physicaly present on this system" >or it's just an alias. Currently I am just testing presence of >/usr/share/locale/$requested_locale/LC_CTYPE and make decision depends >on stat(2) return value. 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_. Try this on "aliased" and "non aliased" locales. (JFYI: It fails on any "aliased" locales on glibc2.) ==lct.c====== #include #include #include main (int argc, char *argv[]) { char * reqlcname; char * gotlcname; if (argc != 2){ printf("Usage: lct language[_TERRITORY[.Codeset]]\n"); exit (1); }; reqlcname=argv[1]; printf("Trying to set LC_CTYPE=%s\n",reqlcname); gotlcname=setlocale(LC_CTYPE, reqlcname); /* ALL MAGIK IS HERE */ if ( !gotlcname) { printf ("There is no locale '%s' in your system.\n",reqlcname); exit (1); } else { printf("I've got LC_CTYPE=%s\n",gotlcname); if ( strcmp(gotlcname, reqlcname)) printf("I can't set REQUIRED locale !\n"); else printf("Great! All OK.\n"); }; } ============= -- -=AV=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 1 8: 0:12 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 F010237B424; Fri, 1 Sep 2000 08:00:05 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e81Exnp29833; Fri, 1 Sep 2000 18:59:49 +0400 (MSD) (envelope-from ache) Date: Fri, 1 Sep 2000 18:59:46 +0400 From: "Andrey A. Chernov" To: Boris Popov Cc: freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, Konstantin Chuguev Subject: Re: Proposal to include iconv library in the base system. Message-ID: <20000901185945.A29804@nagual.pp.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bp@butya.kz on Thu, Aug 24, 2000 at 05:39:39PM +0700 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 24, 2000 at 05:39:39PM +0700, Boris Popov wrote: > FreeBSD already contains a few character conversion schemes for > msdosfs, nwfs, cd9660fs and syscon mapping tables. However, the usage We need XLAT converters for them, not Unicode one, as I understand Unicode data loaded into kernel will be too big. > The questionable part is a which set of character sets should be > included in the base system and which should be supplied as packages. We need to include all charsets we have locale support in the base system. > Secondly, where should the functions be placed? Initially, the iconv /usr/libdata/iconv What I am not understand at this moment: how iconv handles non-convertable characters? I don't see any way to set fill character in described interface. -- 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 Fri Sep 1 8:20:47 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 90B9A37B424; Fri, 1 Sep 2000 08:20:43 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e81FKIC29955; Fri, 1 Sep 2000 19:20:18 +0400 (MSD) (envelope-from ache) Date: Fri, 1 Sep 2000 19:20:17 +0400 From: "Andrey A. Chernov" To: Alexander Voropay Cc: i18n@FreeBSD.ORG, phantom@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <20000901192017.B29804@nagual.pp.ru> References: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <34d701c01424$4a2e4b60$cd0d11ac@host205.spb.in.rosprin.ru>; from a.voropay@globalone.ru on Fri, Sep 01, 2000 at 06:52:03PM +0400 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. -- 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 Fri Sep 1 8:22:10 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id E7FBD37B422; Fri, 1 Sep 2000 08:22:03 -0700 (PDT) Received: by relay.butya.kz (Postfix, from userid 1000) id 2CF9928775; Fri, 1 Sep 2000 22:22:01 +0700 (ALMST) Received: from localhost (localhost [127.0.0.1]) by relay.butya.kz (Postfix) with ESMTP id 2313F28677; Fri, 1 Sep 2000 22:22:01 +0700 (ALMST) Date: Fri, 1 Sep 2000 22:22:01 +0700 (ALMST) From: Boris Popov To: "Andrey A. Chernov" Cc: freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, Konstantin Chuguev Subject: Re: Proposal to include iconv library in the base system. In-Reply-To: <20000901185945.A29804@nagual.pp.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 1 Sep 2000, Andrey A. Chernov wrote: > On Thu, Aug 24, 2000 at 05:39:39PM +0700, Boris Popov wrote: > > FreeBSD already contains a few character conversion schemes for > > msdosfs, nwfs, cd9660fs and syscon mapping tables. However, the usage > > We need XLAT converters for them, not Unicode one, as I understand Unicode > data loaded into kernel will be too big. Correct, for 8 bit charsets XLAT table dynamically built in the user space and then uploaded to the kernel space. This can't be done for multibyte charsets, though. > > The questionable part is a which set of character sets should be > > included in the base system and which should be supplied as packages. > > We need to include all charsets we have locale support in the base system. Noted. > > Secondly, where should the functions be placed? Initially, the iconv > > /usr/libdata/iconv Ok. > What I am not understand at this moment: how iconv handles non-convertable > characters? I don't see any way to set fill character in described > interface. I'll cite iconv(3) man page: If a sequence of input bytes does not form a valid charac- ter in the specified charset, conversion stops after the previous successfully converted character. If the input buffer ends with an incomplete character or shift sequence, conversion stops after the previous successfully converted bytes. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 1 8:39:35 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 B524737B43C; Fri, 1 Sep 2000 08:39:31 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e81FcPd30081; Fri, 1 Sep 2000 19:38:25 +0400 (MSD) (envelope-from ache) Date: Fri, 1 Sep 2000 19:38:24 +0400 From: "Andrey A. Chernov" To: Boris Popov Cc: freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, Konstantin Chuguev Subject: Re: Proposal to include iconv library in the base system. Message-ID: <20000901193824.A30020@nagual.pp.ru> References: <20000901185945.A29804@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: ; from bp@butya.kz on Fri, Sep 01, 2000 at 10:22:01PM +0700 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 01, 2000 at 10:22:01PM +0700, Boris Popov wrote: > If a sequence of input bytes does not form a valid charac- > ter in the specified charset, conversion stops after the > previous successfully converted character. If the input > buffer ends with an incomplete character or shift > sequence, conversion stops after the previous successfully > converted bytes. As I understand, an application (f.e. XLAT table builder for the kernel) should track any stop location and insert f.e. '?' there manually. Is it so? -- 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 Fri Sep 1 9:17:16 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 E305037B42C; Fri, 1 Sep 2000 09:17:07 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13UtUg-000694-00; Fri, 01 Sep 2000 17:16:42 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13UtUd-00073s-00; Fri, 01 Sep 2000 17:16:39 +0100 Message-ID: <39AFD666.880FE6C@dante.org.uk> Date: Fri, 01 Sep 2000 17:16:38 +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" Cc: 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> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Andrey A. Chernov" wrote: > On Thu, Aug 24, 2000 at 05:39:39PM +0700, Boris Popov wrote: > > FreeBSD already contains a few character conversion schemes for > > msdosfs, nwfs, cd9660fs and syscon mapping tables. However, the usage > > We need XLAT converters for them, not Unicode one, as I understand Unicode > data loaded into kernel will be too big. > It depends on what do you mean by Unicode data. At the Unicode site there is a plain/text table with Unicode data, with the number of recored approximately equal 0xFFFF - . Each record corresponds to a Unicode character and can have up to 10 or more fields, among them the canonical name of the character, information about capital and small letters, directionality and so on. This information is intended to be used for processing/[de]normalizing Unicode text. All this is not needed for the charset conversion. The most commonly used 8-bit charsets for filesystems are ISO-8859, Windows-125x, IBM-86x and KOI8-R. It is easy to create XLAT tables for conversion between pairs of these charsets; obviously we won't need the "full mesh" of pairs here, only tables for charsets used for the same language. Simplifying that, we will need N * 2 * 256bytes for all tables. There are two problems here: * it is not so easy to guess the N number. For 4 charsets used for Russian we will need 6 * 2 tables (for 5 charsets - 10 * 2 tables); add other languages; * new filesystems use Unicode encodings: UCS-2 (Windows), some may use UTF-8. These encodings are not supported by XLAT. iconv CCS modules consist of 2 tables each. One table is for translation from the charset to Unicode (UCS-4), the other - from UCS-4 to the charset. There are 4 different table types currently supported: 7-bit, 8-bit, 14-bit and 16-bit. The table layout is hidden from the module interface, two functions actually doing the conversion are as follows (names of functions and arguments here don't match exactly those in the iconv implementation): ucs4_t iconv_ccs_convert_to_ucs(void *module, ucs4_t charset_char); ucs4_t iconv_ccs_convert_from_ucs(void *module, ucs4_t ucs_char); The internal 14-bit and 16-bit tables are two-level, not flat. There is one more type of CCS modules I'm thinking about: 32-bit tables for translation between full range of CJK characters in, say, BIG5 or CNS11643, and the next version of Unicode standard with these character added. 1. charsets for right-to-left scripts; they use special control characters for changing the direction of writing; the algorithm is different from the Unicode one; more complicated logic is necessary for these charsets. The second type of modules is CES - character encoding schemes. Their interface is similar to that below: ucs4_t ccs_convert_to_ucs(void *module, unsigned char **srcstr, unsigned *srcbytelen); int ccs_convert_from_ucs(void *module, unsigned char **dststr, unsigned *dstbytelen, ucs4_t srcchar); The difference from CCS is that there is no fixed-length correspondense between the UCS and original charset characters. Each UCS character can be translated to/from 0 to N bytes of a text encoded in the original character encoding scheme. Now the supported schemes are: * _tbl_simple - used for most European charsets (for ASCII and all 8-bit charsets); it simply uses the corresponding CCS module; * EUC family for CJK; * ISO-2022-xx for CJK; * UCS-4, UCS-2, UTF-16, UTF-8, UTF-7. A new type of CES modules can be the one for charsets used for Arabic and Hebrew, where more complicated algorithm used to convert directionality control characters from/to Unicode. Now, all the modules are loadable and shareable. If the system is using a fair amount of charsets at the same time, the amount of table data loaded into kernel can be actually smaller than when loading all corresponding pairs of XLAT tables. > > > The questionable part is a which set of character sets should be > > included in the base system and which should be supplied as packages. > > We need to include all charsets we have locale support in the base system. > Exactly, this is what was intended. All [UNIX] charsets supported in the FreeBSD distribution (i.e. which are present in the locale directory) PLUS charsets used in other types of filesystems (Windows, Netware?, MacOS?) for the languages supported by FreeBSD (see locale again). Otherwise there is no much need to include iconv to the kernel at the moment. 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. > > > Secondly, where should the functions be placed? Initially, the iconv > > /usr/libdata/iconv > I think this case is much the same as for PAM modules. > > What I am not understand at this moment: how iconv handles non-convertable > characters? I don't see any way to set fill character in described > interface. > According to the standard, iconv stops when it finds an illegal sequence of bytes in the source byte sequence (input charset). If there is no corresponding character in the destination charset, the behaviour of iconv is implementation-dependent. My implementation currently translates it into a predefined (at compile time) substitution character. Don't remember though whether it is '_' or '?' :-) I will try my best to produce the final version 1.0 of the library and conversion modules before Monday. -- * * 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 Fri Sep 1 9:58:53 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 A5D5937B424; Fri, 1 Sep 2000 09:58:48 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e81GwQN30666; Fri, 1 Sep 2000 20:58:26 +0400 (MSD) (envelope-from ache) Date: Fri, 1 Sep 2000 20:58:25 +0400 From: "Andrey A. Chernov" To: Konstantin Chuguev Cc: Boris Popov , freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG Subject: Re: Proposal to include iconv library in the base system. Message-ID: <20000901205825.A30569@nagual.pp.ru> References: <20000901185945.A29804@nagual.pp.ru> <39AFD666.880FE6C@dante.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39AFD666.880FE6C@dante.org.uk>; from Konstantin.Chuguev@dante.org.uk on Fri, Sep 01, 2000 at 05:16:38PM +0100 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 01, 2000 at 05:16:38PM +0100, Konstantin Chuguev wrote: > * new filesystems use Unicode encodings: UCS-2 (Windows), some may use > UTF-8. These encodings are not supported by XLAT. I assume Windows (Unicode) <-> 8bit charset tables are loadable too. Doesn't? > Exactly, this is what was intended. All [UNIX] charsets supported in the > FreeBSD distribution (i.e. which are present in the locale directory) PLUS > charsets used in other types of filesystems (Windows, Netware?, MacOS?) for Currently we support Windows and ISO 9660 for CDs, so PLUS Windows (Unicode) and ISO 9660 charsets. If we take Russian example, we need following tables (for kernel only): 1) KOI8-R <-> CP866 for MSDOS FS 2) KOI8-R <-> Unicode for Windows FS 3) We also need ISO 9660 conversion scheme, but I not know about character set used there. -- 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 Fri Sep 1 10:22:28 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 01BE937B424; Fri, 1 Sep 2000 10:22:23 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13UuVy-0006f7-00; Fri, 01 Sep 2000 18:22:06 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13UuVq-00074M-00; Fri, 01 Sep 2000 18:21:58 +0100 Message-ID: <39AFE5B6.1F418EDD@dante.org.uk> Date: Fri, 01 Sep 2000 18:21:58 +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" Cc: 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> <20000901205825.A30569@nagual.pp.ru> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Andrey A. Chernov" wrote: > On Fri, Sep 01, 2000 at 05:16:38PM +0100, Konstantin Chuguev wrote: > > * new filesystems use Unicode encodings: UCS-2 (Windows), some may use > > UTF-8. These encodings are not supported by XLAT. > > I assume Windows (Unicode) <-> 8bit charset tables are loadable > too. Doesn't? > Yes, they are. iconv always loads 2 CES modules for conversion. A CES module can load 0 or more CCS modules. Let me show you a few examples: If we are converting from koi8-r to UCS-2 and/or the other way around, there will be 3 modules loaded: (CES) _tbl_simple -> (CCS) koi8-r (CES) ucs-2 For conversion between koi8-r and windows-1251, there will be 3 modules again: (CES) _tbl_simple -> (CCS) koi8-r (CES) _tbl_simple -> (CCS) windows-1251 (Note, that only one instance of the _tbl_simple module will be loaded, as modules are shareable; there might be two different small sets of structures allocated for each CES->CCS binding at iconv_open time, and freed at iconv_close time.) For conversion between UTF-8 and EUC-JP 6 modules are required: (CES) utf-8 (CES) euc-jp -> (CCS) us-ascii -> (CCS) jis_x0208-1983 -> (CCS) jis_x0201 -> (CCS) jis_x0212-1990 To convert between EUC-JP and ISO-2022-JP we need 6 modules: (CES) euc-jp -> (CCS) us-ascii -> (CCS) jis_x0208-1983 -> (CCS) jis_x0201 -> (CCS) jis_x0212-1990 (CES) iso-2022-jp -> (CCS) us-ascii -> (CCS) jis_x0208-1983 -> (CCS) jis_x0201 -> (CCS) jis_x0212-1990 Again, all CCS modules will be shared. > > > Exactly, this is what was intended. All [UNIX] charsets supported in the > > FreeBSD distribution (i.e. which are present in the locale directory) PLUS > > charsets used in other types of filesystems (Windows, Netware?, MacOS?) for > > Currently we support Windows and ISO 9660 for CDs, so PLUS Windows > (Unicode) and ISO 9660 charsets. > > If we take Russian example, we need following tables (for kernel only): > > 1) KOI8-R <-> CP866 for MSDOS FS > 2) KOI8-R <-> Unicode for Windows FS What about Windows < 95? I'm sure people used localized file names there too. And it was not Unicode. > > 3) We also need ISO 9660 conversion scheme, but I not know about > character set used there. > Can anybody please give me a reference to ISO 9660 specification. I would also like to know which IBM charsets are used in MSDOS FS for languages other than Russian (and supported in FreeBSD). -- * * 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 Fri Sep 1 10:27:46 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 E514637B424; Fri, 1 Sep 2000 10:27:42 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e81HRKB30862; Fri, 1 Sep 2000 21:27:20 +0400 (MSD) (envelope-from ache) Date: Fri, 1 Sep 2000 21:27:20 +0400 From: "Andrey A. Chernov" To: Konstantin Chuguev Cc: Boris Popov , freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG Subject: Re: Proposal to include iconv library in the base system. Message-ID: <20000901212720.A30831@nagual.pp.ru> References: <20000901185945.A29804@nagual.pp.ru> <39AFD666.880FE6C@dante.org.uk> <20000901205825.A30569@nagual.pp.ru> <39AFE5B6.1F418EDD@dante.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39AFE5B6.1F418EDD@dante.org.uk>; from Konstantin.Chuguev@dante.org.uk on Fri, Sep 01, 2000 at 06:21:58PM +0100 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 01, 2000 at 06:21:58PM +0100, Konstantin Chuguev wrote: > > 1) KOI8-R <-> CP866 for MSDOS FS > > 2) KOI8-R <-> Unicode for Windows FS > > What about Windows < 95? I'm sure people used localized file names there too. > And it was not Unicode. There was windows-1251 used, but we don't support non-Unicoded Windows FS in any 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 Fri Sep 1 11:15:39 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [206.165.6.135]) by hub.freebsd.org (Postfix) with ESMTP id D51EF37B617; Fri, 1 Sep 2000 11:14:41 -0700 (PDT) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id LAA28533; Fri, 1 Sep 2000 11:14:48 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp05.primenet.com, id smtpdAAACDaGG3; Fri Sep 1 11:14:34 2000 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id LAA09132; Fri, 1 Sep 2000 11:14:20 -0700 (MST) From: Terry Lambert Message-Id: <200009011814.LAA09132@usr05.primenet.com> Subject: Re: Proposal to include iconv library in the base system. To: ache@nagual.pp.ru (Andrey A. Chernov) Date: Fri, 1 Sep 2000 18:14:20 +0000 (GMT) Cc: bp@butya.kz (Boris Popov), freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, Konstantin.Chuguev@dante.org.uk (Konstantin Chuguev) In-Reply-To: <20000901185945.A29804@nagual.pp.ru> from "Andrey A. Chernov" at Sep 01, 2000 06:59:46 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thu, Aug 24, 2000 at 05:39:39PM +0700, Boris Popov wrote: > > FreeBSD already contains a few character conversion schemes for > > msdosfs, nwfs, cd9660fs and syscon mapping tables. However, the usage > > We need XLAT converters for them, not Unicode one, as I understand Unicode > data loaded into kernel will be too big. You can mmap a file into a pageable region in the kernel; it's just a pain requiring a lot of glue, and eats KVM address space (same problem with SYSV SHM). You could change the approach to "window" it, but you'd really want to only enforce that in low KVM situations. It's useful to have the tables in the kernel when you are, for example, trying to deal with NTFS or another modern FS which uses Unicode as the on disk storage format for directory data. Likewise, it would allow you to do translation between (for example) ISO 8859-1 and ISO 8859-5 character sets between a machine which is exporting ISO 8859-1 to the user space (via the directory entry operations) and a remote system which has an NFS volume containing ISO 8859-5. My personal preference would be to move most of the POSIX interfaces into a library, and go to Unicode for the native FreeBSD system calls. If that happened, you'd still need translation for Linux and other ABI compatability, since they would be pushing a particular 8-bit character set over the user/kernel boundary. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 1 22:54:29 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from wolf.istc.kiev.ua (wolf.istc.kiev.ua [193.193.221.1]) by hub.freebsd.org (Postfix) with ESMTP id D33DE37B424; Fri, 1 Sep 2000 22:54:24 -0700 (PDT) Received: from localhost (kunia@localhost) by wolf.istc.kiev.ua ( . . / . . ) with ESMTP id IAA16399; Sat, 2 Sep 2000 08:53:36 +0300 Date: Sat, 2 Sep 2000 08:53:36 +0300 (EEST) From: Olexander Kunytsa To: "Andrey A. Chernov" Cc: Konstantin Chuguev , Boris Popov , freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG Subject: Re: Proposal to include iconv library in the base system. In-Reply-To: <20000901212720.A30831@nagual.pp.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 1 Sep 2000, Andrey A. Chernov wrote: > > > 1) KOI8-R <-> CP866 for MSDOS FS > > > 2) KOI8-R <-> Unicode for Windows FS > > what about KOI8-U? Windows FS supports Ukrainian filenames To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 1 23:41:53 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id 6106E37B43C; Fri, 1 Sep 2000 23:41:49 -0700 (PDT) Received: by relay.butya.kz (Postfix, from userid 1000) id F2875288C7; Sat, 2 Sep 2000 13:41:44 +0700 (ALMST) Received: from localhost (localhost [127.0.0.1]) by relay.butya.kz (Postfix) with ESMTP id E84F6288B0; Sat, 2 Sep 2000 13:41:44 +0700 (ALMST) Date: Sat, 2 Sep 2000 13:41:44 +0700 (ALMST) From: Boris Popov To: Olexander Kunytsa Cc: "Andrey A. Chernov" , Konstantin Chuguev , freebsd-arch@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG Subject: Re: Proposal to include iconv library in the base system. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 2 Sep 2000, Olexander Kunytsa wrote: > On Fri, 1 Sep 2000, Andrey A. Chernov wrote: > > > > 1) KOI8-R <-> CP866 for MSDOS FS > > > > 2) KOI8-R <-> Unicode for Windows FS > > > > what about KOI8-U? Windows FS supports Ukrainian filenames iconv library contains koi8-u character set. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Sep 2 2: 3:58 2000 Delivered-To: freebsd-i18n@freebsd.org Received: from blues.jpj.net (blues.jpj.net [204.97.17.146]) by hub.freebsd.org (Postfix) with ESMTP id 72EC037B423 for ; Sat, 2 Sep 2000 02:03:55 -0700 (PDT) Received: from localhost (trevor@localhost) by blues.jpj.net (right/backatcha) with ESMTP id e8293sK29388 for ; Sat, 2 Sep 2000 05:03:54 -0400 (EDT) Date: Sat, 2 Sep 2000 05:03:54 -0400 (EDT) From: Trevor Johnson To: freebsd-i18n@FreeBSD.ORG Subject: Sun press release Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. -- Trevor Johnson http://jpj.net/~trevor/gpgkey.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message