This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: nl_langinfo(CODESET)
Markus Kuhn writes:
> Since there are a couple of programs out there (for example less and
> xterm!) which parse "LANG", "LC_CTYPE", and "LC_ALL" to find out
> whether UTF-8 is used (instead of using nl_langinfo(CODESET)), it
> would be good to attach ".UTF-8" to these four locale names in particular.
The programs you cite should be fixed to use nl_langinfo(CODESET), or
- if portability to older systems is desired - libcharset[1].
Bruno
[1] http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/clisp/libiconv/libcharset/?cvsroot=clisp