pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] Text module unit tests failing


From: gerel
Subject: Re: [pdf-devel] Text module unit tests failing
Date: Fri, 05 Sep 2008 06:07:09 -0700 (PDT)

 > Date: Fri, 05 Sep 2008 10:34:35 +0200
 > From: Aleksander Morgado <address@hidden>
 > 
 > #if defined HAVE_SETLOCALE
 >   /* Set all categories of the locale */
 >   if(setlocale(LC_ALL, "") == NULL)
 >     {
 >       PDF_DEBUG_BASE("Error setting locale information in the process");
 >       return PDF_ETEXTENC;
 >     }
 > #endif
 > 

I think it has to be the test suite environment, I tested this code:

##
int main ()
{
        setlocale(LC_ALL,"");
        printf ("LC_CTYPE: %s\n", setlocale(LC_CTYPE,NULL));
        printf ("LC_ALL: %s\n", setlocale(LC_ALL,NULL));
}
###
And the output:
##
LC_CTYPE: en_US.UTF-8
LC_ALL: en_US.UTF-8
###


cheers

-gerel




reply via email to

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