On 02/17/2011 08:23 PM, Bruno Haible wrote: > > Huh? This is surprising. And what does this program show? > > #include <locale.h> > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > > int > main () > { > setenv ("LC_ALL", "ar_SA.ISO-8859-1", 1); > if (setlocale (LC_ALL, "") != NULL) > { > printf ("%s\n", setlocale (LC_ALL, NULL)); > printf ("%s\n", setlocale (LC_CTYPE, NULL)); > } > return 0; > }
Here, the output is: C C -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature