Re: Documenting composite LC_ALL locale, anyone?

Andrey Chernov <[email protected]>
Newsgroups gmane.os.freebsd.devel.internationalization
Message-ID <[email protected]>
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/
signature.asc (application/pgp-signature, 305 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iQCVAwUBQBzqcuJgpPLZnQjrAQFd/gP/epAqvI4vSauzoFF8ENS7oJIqEzLpZmmw
CDDfcIxOP3PhoxipY6otDlQO2gg8Y1zhr2d9C3nkbYaUHZwzv/vjY5BcETtcs5mn
YHcKB+JMuicVsF4CIfvwbfyaqOT7Gvm6I8svXvz8NEhiVXu7gOrQcBlYVUBn6uwE
FDHRRW/NuUU=
=CGaB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.