Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2004 15:00:50 +0300
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        ru@FreeBSD.org, doc@FreeBSD.org
Cc:        i18n@FreeBSD.org
Subject:   Re: Documenting composite LC_ALL locale, anyone?
Message-ID:  <20040201120050.GA41545@nagual.pp.ru>
In-Reply-To: <20040201104146.GF57540@FreeBSD.org.ua>
References:  <200401312329.i0VNTKCH067740@repoman.freebsd.org> <20040201093646.GD57540@FreeBSD.org.ua> <20040201094001.GA40180@nagual.pp.ru> <20040201104146.GF57540@FreeBSD.org.ua>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iQCVAwUBQBzqcuJgpPLZnQjrAQFd/gP/epAqvI4vSauzoFF8ENS7oJIqEzLpZmmw
CDDfcIxOP3PhoxipY6otDlQO2gg8Y1zhr2d9C3nkbYaUHZwzv/vjY5BcETtcs5mn
YHcKB+JMuicVsF4CIfvwbfyaqOT7Gvm6I8svXvz8NEhiVXu7gOrQcBlYVUBn6uwE
FDHRRW/NuUU=
=CGaB
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040201120050.GA41545>