From owner-freebsd-i18n@FreeBSD.ORG Wed Nov 19 04:33:53 2003 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAB3416A4CE for ; Wed, 19 Nov 2003 04:33:53 -0800 (PST) Received: from mandy.mts.ru (mandy.mts.ru [81.211.47.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EE2E43FA3 for ; Wed, 19 Nov 2003 04:33:51 -0800 (PST) (envelope-from tiamat@komi.mts.ru) Received: from maeko.inside.mts.ru (maeko [192.168.10.3]) by mandy.mts.ru with SMTP id hAJCXnb16309 for ; Wed, 19 Nov 2003 15:33:49 +0300 (MSK) Received: from stella.komi.mts.ru ([10.50.1.1]) by maeko.inside.mts.ru (NAVGW 2.5.2.12) with SMTP id M2003111915334817164 for ; Wed, 19 Nov 2003 15:33:48 +0300 Received: from nbdav (nb-dav.komi.mts.ru [10.50.1.185]) (user=tiamat mech=NTLM bits=0) by stella.komi.mts.ru (MTS Komi/Smtp) with ESMTP id hAJCXmFm067999 for ; Wed, 19 Nov 2003 15:33:48 +0300 (MSK) (envelope-from tiamat@komi.mts.ru) Message-ID: <007001c3ae99$4c81f340$b901320a@komi.mts.ru> From: "Alex Deiter" To: Organization: MTS MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by stella.komi.mts.ru id hAJCXmFm067999 Subject: /bin/ls incorrectly displays names of files on UTF-8 locales X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 19 Nov 2003 12:33:54 -0000 X-Original-Date: Wed, 19 Nov 2003 15:33:12 +0300 X-List-Received-Date: Wed, 19 Nov 2003 12:33:54 -0000 /bin/ls incorrectly displays names of files on UTF-8 locales (ports/misc/utf8locale): $ locale LANG=3Dru_RU.UTF-8 LC_CTYPE=3D"ru_RU.UTF-8" LC_COLLATE=3D"ru_RU.UTF-8" LC_TIME=3D"ru_RU.UTF-8" LC_NUMERIC=3D"ru_RU.UTF-8" LC_MONETARY=3D"ru_RU.UTF-8" LC_MESSAGES=3D"ru_RU.UTF-8" LC_ALL=3Dru_RU.UTF-8 $ touch =D0=D2=CF=C2=C1 $ ls -l =D0=D2=CF=C2=C1 -rw-r--r-- 1 test test 0 19 =CE=CF=D1 15:17 =D0=91?=CF=C2=C1 However ls | cat (ls|less, ls|sort, etc) works correctly: $ ls -l =D0=D2=CF=C2=C1 | cat -rw-r--r-- 1 test test 0 19 =CE=CF=D1 15:17 =D0=D2=CF=C2=C1 Why ? All other programs from /bin and /sbin work correctly. Thanks! From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 04:00:54 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1006816A4CF; Sun, 1 Feb 2004 04:00:54 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17A7543D54; Sun, 1 Feb 2004 04:00:52 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.10/8.12.10) with ESMTP id i11C0pHa041625; Sun, 1 Feb 2004 15:00:51 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.10/8.12.10/Submit) id i11C0pgq041620; Sun, 1 Feb 2004 15:00:51 +0300 (MSK) (envelope-from ache) Date: Sun, 1 Feb 2004 15:00:50 +0300 From: Andrey Chernov To: ru@FreeBSD.org, doc@FreeBSD.org Message-ID: <20040201120050.GA41545@nagual.pp.ru> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <20040201104146.GF57540@FreeBSD.org.ua> User-Agent: Mutt/1.5.5.1i cc: i18n@FreeBSD.org Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 12:00:54 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 12:41:46PM +0200, Ruslan Ermilov wrote: > Perhaps someone from the documentation project could take care of > documenting that? A good start would be the setlocale(3) manpage > from Solaris 9, when it talks about composite locale for LC_ALL, > but not enough: >=20 > http://www.FreeBSD.org/cgi/man.cgi?query=3Dsetlocale&manpath=3DSunOS%205.9 BTW, there is a problem in "/"-form historycally implemented by BSD & some others - it leads to POSIX violation. POSIX allows "/"es in the locale variable name which means full path to file when started with "/". When such names returned as combined composite separated with "/", there is too many "/"es to parse back. It means that separator must be not valid=20 filesystem character, which is impossible. So, whole composite string=20 should be redesigned to something like: 2 bytes - character count of next string next string 2 bytes next string=20 =2E.. --=20 Andrey Chernov | http://ache.pp.ru/ --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQBzqcuJgpPLZnQjrAQFd/gP/epAqvI4vSauzoFF8ENS7oJIqEzLpZmmw CDDfcIxOP3PhoxipY6otDlQO2gg8Y1zhr2d9C3nkbYaUHZwzv/vjY5BcETtcs5mn YHcKB+JMuicVsF4CIfvwbfyaqOT7Gvm6I8svXvz8NEhiVXu7gOrQcBlYVUBn6uwE FDHRRW/NuUU= =CGaB -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 04:08:08 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAEF016A4CF; Sun, 1 Feb 2004 04:08:07 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C16643D48; Sun, 1 Feb 2004 04:08:06 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.10/8.12.10) with ESMTP id i11C85Ha041777; Sun, 1 Feb 2004 15:08:05 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.10/8.12.10/Submit) id i11C85VA041776; Sun, 1 Feb 2004 15:08:05 +0300 (MSK) (envelope-from ache) Date: Sun, 1 Feb 2004 15:08:05 +0300 From: Andrey Chernov To: ru@FreeBSD.ORG, doc@FreeBSD.ORG Message-ID: <20040201120805.GA41753@nagual.pp.ru> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20040201120050.GA41545@nagual.pp.ru> User-Agent: Mutt/1.5.5.1i cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 12:08:08 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 03:00:50PM +0300, Andrey Chernov wrote: > 2 bytes - character count of next string > next string > 2 bytes > next string=20 > ... Oops, '\0' must not happens inside, so no binary 2 bytes but digits - char count space string digits space =2E.. --=20 Andrey Chernov | http://ache.pp.ru/ --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQBzsJeJgpPLZnQjrAQFPLQP+LFzq0DmBYkOHDGYbJZPnota5wvb3DmAn fO4Xw0BkHIAd33F7LnWIRTZggjdv7ZegGv9UJLkB+7ChRQ/EGZFkSMvCcVgO8iHI jj6td4z/wBL4gZG7B1wImKibP5jrTxxGEVtc2KsyqakuCsNUcuaKlg1TmD60FaU5 ycdyQxU2xmQ= =jRLW -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 04:30:58 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1D7E16A4CF; Sun, 1 Feb 2004 04:30:58 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 962B843D1D; Sun, 1 Feb 2004 04:30:50 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i11CVSem059605; Sun, 1 Feb 2004 14:31:28 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i11CVS3p059600; Sun, 1 Feb 2004 14:31:28 +0200 (EET) (envelope-from ru) Date: Sun, 1 Feb 2004 14:31:28 +0200 From: Ruslan Ermilov To: Andrey Chernov Message-ID: <20040201123128.GA59402@FreeBSD.org.ua> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> <20040201120805.GA41753@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20040201120805.GA41753@nagual.pp.ru> User-Agent: Mutt/1.5.5.1i cc: doc@FreeBSD.ORG cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 12:30:59 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 03:08:05PM +0300, Andrey Chernov wrote: > On Sun, Feb 01, 2004 at 03:00:50PM +0300, Andrey Chernov wrote: > > 2 bytes - character count of next string > > next string > > 2 bytes > > next string=20 > > ... >=20 > Oops, '\0' must not happens inside, so no binary 2 bytes but >=20 > digits - char count > space > string > digits > space > ... >=20 But space is a valid character in filenames. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAHPGfUkv4P6juNwoRAofUAJ9KQRaKZjJb9FU5ftgf6QwFdrYgQACfV++S jhrxV6L889b5wL/2BabGk8k= =tefp -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 04:48:35 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 704DC16A4CE; Sun, 1 Feb 2004 04:48:35 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07E0143D1D; Sun, 1 Feb 2004 04:48:32 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i11CnEem059796; Sun, 1 Feb 2004 14:49:14 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i11CnDCe059791; Sun, 1 Feb 2004 14:49:13 +0200 (EET) (envelope-from ru) Date: Sun, 1 Feb 2004 14:49:13 +0200 From: Ruslan Ermilov To: Andrey Chernov Message-ID: <20040201124913.GB59402@FreeBSD.org.ua> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> <20040201120805.GA41753@nagual.pp.ru> <20040201123128.GA59402@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8GpibOaaTibBMecb" Content-Disposition: inline In-Reply-To: <20040201123128.GA59402@FreeBSD.org.ua> User-Agent: Mutt/1.5.5.1i cc: doc@FreeBSD.ORG cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 12:48:35 -0000 --8GpibOaaTibBMecb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable One option to deal with this complex case (LC_ALL, composite locale, and when some of the components start with a `/') would be to replace each single slash with two adjacent slashes, so an argument of `/pathto/localedef/output' would become `//pathto//localedef//output'. Then double slashes in the input would represent a single slash, and single shash would represent a component separator. Unfortunately, POSIX-200x is silent on this case while requiring that the output of ``setlocale(LC_ALL, NULL)'' should be such that when it's fed back to ``setlocale(LC_ALL, ...)'' it should restore all of the locale components. Perhaps we should seek for some clarifications in the Austin Group? ;) Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --8GpibOaaTibBMecb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAHPXJUkv4P6juNwoRAt4vAJ0aflgLhZ/1vNYfOueUQq0jEWZoSACfeD4E giF9cKztKRrTPerxWxLrsnU= =Rzh1 -----END PGP SIGNATURE----- --8GpibOaaTibBMecb-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 04:50:18 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 496E716A4CE; Sun, 1 Feb 2004 04:50:18 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 943F243D53; Sun, 1 Feb 2004 04:50:16 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.10/8.12.10) with ESMTP id i11CoFHa042353; Sun, 1 Feb 2004 15:50:15 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.10/8.12.10/Submit) id i11CoFeJ042352; Sun, 1 Feb 2004 15:50:15 +0300 (MSK) (envelope-from ache) Date: Sun, 1 Feb 2004 15:50:14 +0300 From: Andrey Chernov To: Ruslan Ermilov Message-ID: <20040201125014.GA42285@nagual.pp.ru> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> <20040201120805.GA41753@nagual.pp.ru> <20040201123128.GA59402@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20040201123128.GA59402@FreeBSD.org.ua> User-Agent: Mutt/1.5.5.1i cc: doc@FreeBSD.ORG cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 12:50:18 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 02:31:28PM +0200, Ruslan Ermilov wrote: > > Oops, '\0' must not happens inside, so no binary 2 bytes but > >=20 > > digits - char count > > space > > string > > digits > > space > > ... > >=20 > But space is a valid character in filenames. It does not matter, first space after number skipped. Space needed to=20 separate number from name (which can start from number in general case). --=20 Andrey Chernov | http://ache.pp.ru/ --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQBz2BuJgpPLZnQjrAQHdSQP/cB0C8BpOTGY2NpMEZLQ/hhoFsnWo5Klw h4COD8Gaoqfvv2OibnVYZG+3ezpkpaI0g4Y2h/fAtML1KZI0onMfQXX/MDtdnTc6 47ZlcRQoje5HkPj/y2fOhs73wgpyLcK0UU/1V71YE0YOEclwmzjgQR3B6CtZUZJn /2ah7lyev2E= =DERp -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 04:54:45 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DF8016A4CE; Sun, 1 Feb 2004 04:54:45 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A7A443D4C; Sun, 1 Feb 2004 04:54:41 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i11CtOem059940; Sun, 1 Feb 2004 14:55:24 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i11CtOMA059939; Sun, 1 Feb 2004 14:55:24 +0200 (EET) (envelope-from ru) Date: Sun, 1 Feb 2004 14:55:23 +0200 From: Ruslan Ermilov To: Andrey Chernov Message-ID: <20040201125523.GD59402@FreeBSD.org.ua> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> <20040201120805.GA41753@nagual.pp.ru> <20040201123128.GA59402@FreeBSD.org.ua> <20040201125014.GA42285@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UoPmpPX/dBe4BELn" Content-Disposition: inline In-Reply-To: <20040201125014.GA42285@nagual.pp.ru> User-Agent: Mutt/1.5.5.1i cc: doc@FreeBSD.ORG cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 12:54:45 -0000 --UoPmpPX/dBe4BELn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 03:50:14PM +0300, Andrey Chernov wrote: > On Sun, Feb 01, 2004 at 02:31:28PM +0200, Ruslan Ermilov wrote: > > > Oops, '\0' must not happens inside, so no binary 2 bytes but > > >=20 > > > digits - char count > > > space > > > string > > > digits > > > space > > > ... > > >=20 > > But space is a valid character in filenames. >=20 > It does not matter, first space after number skipped. Space needed to=20 > separate number from name (which can start from number in general case). >=20 This format is easy to generate when querying the locale with setlocale(LC_ALL, NULL), but when setting the locale it becomes very user-unfriendly. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --UoPmpPX/dBe4BELn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAHPc7Ukv4P6juNwoRAu8xAKCDHGjA/i7UkK4LYH7ohcv6U1dPaQCfdElW 39uRe256En3MmpE4sydF5jY= =Ije1 -----END PGP SIGNATURE----- --UoPmpPX/dBe4BELn-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 05:04:13 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0842916A5F4; Sun, 1 Feb 2004 05:04:13 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0EAD43D55; Sun, 1 Feb 2004 05:03:28 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.10/8.12.10) with ESMTP id i11D3QHa042564; Sun, 1 Feb 2004 16:03:26 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.10/8.12.10/Submit) id i11D3Qsb042563; Sun, 1 Feb 2004 16:03:26 +0300 (MSK) (envelope-from ache) Date: Sun, 1 Feb 2004 16:03:25 +0300 From: Andrey Chernov To: Ruslan Ermilov Message-ID: <20040201130325.GA42457@nagual.pp.ru> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> <20040201120805.GA41753@nagual.pp.ru> <20040201123128.GA59402@FreeBSD.org.ua> <20040201124913.GB59402@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20040201124913.GB59402@FreeBSD.org.ua> User-Agent: Mutt/1.5.5.1i cc: doc@FreeBSD.ORG cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 13:04:13 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 02:49:13PM +0200, Ruslan Ermilov wrote: > One option to deal with this complex case (LC_ALL, composite locale, > and when some of the components start with a `/') would be to replace > each single slash with two adjacent slashes, so an argument of > `/pathto/localedef/output' would become `//pathto//localedef//output'. > Then double slashes in the input would represent a single slash, and > single shash would represent a component separator. //xxx///yyy//zzz is /xxx /yyy/zzz or /xxx/ yyy/zzz ? > Unfortunately, POSIX-200x is silent on this case while requiring that > the output of ``setlocale(LC_ALL, NULL)'' should be such that when > it's fed back to ``setlocale(LC_ALL, ...)'' it should restore all of > the locale components. Perhaps we should seek for some clarifications > in the Austin Group? ;) This is implementation-defined. It does not matter to standartize it=20 because it can't be modified, only saved/restored. --=20 Andrey Chernov | http://ache.pp.ru/ --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQBz5HeJgpPLZnQjrAQFI0gQA5MlqmflcNheTplLl48v+pvmwKM42Zz3y mLfanuqp6u+18Iqw8bgunGTXSZc10f9kTb1bOuAwLo4xFh6Kz0nSIJJbaeSIpWZf KWkwjTJhh5+pJbuHJHSTrBKE9yLLHspbR9g3Jn7H+NA0cID9Pcqjoc7Sn/6GnPJ/ EGppU+oDIy0= =hHKA -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- From owner-freebsd-i18n@FreeBSD.ORG Sun Feb 1 05:07:20 2004 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D91D216A4CE; Sun, 1 Feb 2004 05:07:20 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C23F43D41; Sun, 1 Feb 2004 05:06:32 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.10/8.12.10) with ESMTP id i11D6CHa042606; Sun, 1 Feb 2004 16:06:12 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.10/8.12.10/Submit) id i11D6CZU042605; Sun, 1 Feb 2004 16:06:12 +0300 (MSK) (envelope-from ache) Date: Sun, 1 Feb 2004 16:06:11 +0300 From: Andrey Chernov To: Ruslan Ermilov Message-ID: <20040201130611.GB42457@nagual.pp.ru> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua> <20040201120050.GA41545@nagual.pp.ru> <20040201120805.GA41753@nagual.pp.ru> <20040201123128.GA59402@FreeBSD.org.ua> <20040201125014.GA42285@nagual.pp.ru> <20040201125523.GD59402@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="EuxKj2iCbKjpUGkD" Content-Disposition: inline In-Reply-To: <20040201125523.GD59402@FreeBSD.org.ua> User-Agent: Mutt/1.5.5.1i cc: doc@FreeBSD.ORG cc: i18n@FreeBSD.ORG Subject: Re: Documenting composite LC_ALL locale, anyone? X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 13:07:21 -0000 --EuxKj2iCbKjpUGkD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 02:55:23PM +0200, Ruslan Ermilov wrote: > This format is easy to generate when querying the locale with > setlocale(LC_ALL, NULL), but when setting the locale it becomes > very user-unfriendly. This string can't be used to _set_ locale according to POSIX, only to=20 save/restore it. To set locale, separate setlocale() calls must be=20 used instead, so no user-friedling needed here. --=20 Andrey Chernov | http://ache.pp.ru/ --EuxKj2iCbKjpUGkD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQBz5w+JgpPLZnQjrAQFNBgP7BTZs3mfWaRT/dlroMt8PPkcJpK6HGmbc NOpYKFhDlSPaICqV+3Qa3/D+VkP896Aj1188x1hxVX3QdUOYWwIg65q9OzYkVwo1 m7mVPzDq5UrmAgxs9xf+EEpZTMe9Ap4T1+05yH9hWGiid1R44EbrqyZ33XyKcoFk v0TyzAQnMJQ= =qlT2 -----END PGP SIGNATURE----- --EuxKj2iCbKjpUGkD--