From owner-cvs-src@FreeBSD.ORG Sun Feb 1 02:41:23 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C47216A4CE; Sun, 1 Feb 2004 02:41:23 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6D5C43D2D; Sun, 1 Feb 2004 02:41:18 -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 i11Afoem058768; Sun, 1 Feb 2004 12:41:53 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i11Aflra058763; Sun, 1 Feb 2004 12:41:47 +0200 (EET) (envelope-from ru) Date: Sun, 1 Feb 2004 12:41:46 +0200 From: Ruslan Ermilov To: doc@FreeBSD.org Message-ID: <20040201104146.GF57540@FreeBSD.org.ua> Mail-Followup-To: ru@FreeBSD.org, doc@FreeBSD.org References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K/NRh952CO+2tg14" Content-Disposition: inline In-Reply-To: <20040201094001.GA40180@nagual.pp.ru> User-Agent: Mutt/1.5.5.1i cc: Andrey Chernov cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Documenting composite LC_ALL locale, anyone? X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 10:41:23 -0000 --K/NRh952CO+2tg14 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2004 at 12:40:01PM +0300, Andrey Chernov wrote: > On Sun, Feb 01, 2004 at 11:36:46AM +0200, Ruslan Ermilov wrote: > > While here, could you perhaps also document the "slash" syntax for > > LC_ALL (in the setlocale(3) manpage)? >=20 > Not with my English :-( > Feel free to submit your variant. >=20 Perhaps someone from the documentation project could take care of documenting that? A good start would be the setlocale(3) manpage =66rom Solaris 9, when it talks about composite locale for LC_ALL, but not enough: http://www.FreeBSD.org/cgi/man.cgi?query=3Dsetlocale&manpath=3DSunOS%205.9 To get an idea of what the composite LC_ALL locale is, compile and run the following program: : #include : #include :=20 : int : main(void) : { :=20 : setlocale(LC_ALL, "C"); /* redundant */ : setlocale(LC_CTYPE, "en_US.ISO8859-1"); : printf("%s\n", setlocale(LC_ALL, NULL)); : return (0); : } Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --K/NRh952CO+2tg14 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAHNfpUkv4P6juNwoRApy4AJ4v/oPON5POc2kYg2WBwz5ziO1X+wCeKFDh 6wm3XAHODAocVWSYL5u89sQ= =CA76 -----END PGP SIGNATURE----- --K/NRh952CO+2tg14--