Documenting composite LC_ALL locale, anyone?

Ruslan Ermilov ru at FreeBSD.ORG
Sun Feb 1 12:48:35 UTC 2004


One option to deal with this complex case (LC_ALL, composite locale,
and when some of the components start with a `/') would be to replace
each single slash with two adjacent slashes, so an argument of
`/pathto/localedef/output' would become `//pathto//localedef//output'.
Then double slashes in the input would represent a single slash, and
single shash would represent a component separator.

Unfortunately, POSIX-200x is silent on this case while requiring that
the output of ``setlocale(LC_ALL, NULL)'' should be such that when
it's fed back to ``setlocale(LC_ALL, ...)'' it should restore all of
the locale components.  Perhaps we should seek for some clarifications
in the Austin Group?  ;)


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/freebsd-doc/attachments/20040201/2f6968d0/attachment.sig>


More information about the freebsd-doc mailing list