Documenting composite LC_ALL locale, anyone?

Andrey Chernov ache at nagual.pp.ru
Sun Feb 1 12:00:54 UTC 2004


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:
> 
> http://www.FreeBSD.org/cgi/man.cgi?query=setlocale&manpath=SunOS%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 
filesystem character, which is impossible. So, whole composite string 
should be redesigned to something like:

2 bytes - character count of next string
next string
2 bytes
next string 
...

-- 
Andrey Chernov | http://ache.pp.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20040201/53684002/attachment.sig>


More information about the freebsd-doc mailing list