Date: Sun, 1 Feb 2004 12:41:46 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: doc@FreeBSD.org Cc: cvs-src@FreeBSD.org Subject: Documenting composite LC_ALL locale, anyone? Message-ID: <20040201104146.GF57540@FreeBSD.org.ua> In-Reply-To: <20040201094001.GA40180@nagual.pp.ru> References: <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <locale.h> : #include <stdio.h> :=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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040201104146.GF57540>