"display charset" vs. Unix locales

Michael B Allen mballen at ioplex.com
Sat May 31 07:44:12 GMT 2003

On Fri, 23 May 2003, Steve Langasek wrote:

> One curious side-effect is that the default for display charset is
> "ASCII", but glibc's nl_langinfo() returns "ANSI_X3.4-1968" as the
> character set for the C locale.  This results in C locale conversions

This is because you must first initialize the locale with
setlocale(LC_CTYPE, ""). Then it will say ASCII. Actually it will probably
say ISO-8859-1.


A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 

More information about the samba-technical mailing list