Documenting composite LC_ALL locale, anyone?

Ruslan Ermilov ru at FreeBSD.org
Sun Feb 1 02:41:23 PST 2004


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)?
> 
> Not with my English :-(
> Feel free to submit your variant.
> 
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:

http://www.FreeBSD.org/cgi/man.cgi?query=setlocale&manpath=SunOS%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>
: 
: int
: main(void)
: {
: 
: 	setlocale(LC_ALL, "C"); /* redundant */
: 	setlocale(LC_CTYPE, "en_US.ISO8859-1");
: 	printf("%s\n", setlocale(LC_ALL, NULL));
: 	return (0);
: }


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040201/c2edc2d7/attachment-0001.bin


More information about the cvs-src mailing list