bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'setlocale'


From: Eric Blake
Subject: Re: new module 'setlocale'
Date: Fri, 18 Feb 2011 09:17:00 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]