From owner-freebsd-doc@FreeBSD.ORG Sun Feb 1 04:00:54 2004 Return-Path: Delivered-To: freebsd-doc@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-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project 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--