[Top][All Lists]
[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: |
Thu, 17 Feb 2011 20:06:09 -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 07:40 PM, Bruno Haible wrote:
> Hi Eric,
>
>> I'm now seeing this failure on Haiku alpha 2:
>>
>> FAIL: test-setlocale2.sh (exit: 1)
>> ==================================
>>
>> setlocale did not fail for implicit ar_SA.ISO-8859-1
>>
>> What can I do to help you diagnose the root cause and work around this
>> issue?
>
> It should be easy to trim down the test program, to something like this:
>
> #include <locale.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> int
> main ()
> {
> if (setlocale (LC_ALL, "ar_SA.ISO-8859-1") != NULL)
> {
> printf ("%s\n", setlocale (LC_ALL, NULL));
> printf ("%s\n", setlocale (LC_CTYPE, NULL));
> }
> return 0;
> }
This outputs nothing; setlocale failed.
>
> The next step is to get a list of the supported locales, either
> through "locale -a" or by looking in system locations or in the source
> code of the setlocale function.
Haiku lacks locale(1). config.log shows:
ac_cv_func_setlocale=yes
REPLACE_SETLOCALE='0'
I cloned the current haiku svn tree into something browseable:
http://repo.or.cz/w/haiku.git/blob?f=src/system/libroot/posix/locale/setlocale.cpp
but it's not immediately obvious what locales that supports, nor if it
is newer than the 'alpha 2' release.
>
> From this step, infer whether the problem is that "ISO-8859-1" is not
> supported as an encoding in general, or whether it's the combination of
> Arabic and ISO-8859-1 that is not supported.
I guess that bears asking to the haiku folks.
>
> Then we should be able to report a bug to the Haiku people.
>
> Bruno
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- locale dependent tests on mingw, Bruno Haible, 2011/02/12
- new module 'setlocale', Bruno Haible, 2011/02/12
- Re: new module 'setlocale', Bruno Haible, 2011/02/12
- Re: new module 'setlocale', Bruno Haible, 2011/02/12
- Re: new module 'setlocale', Eric Blake, 2011/02/17
- Re: new module 'setlocale', Bruno Haible, 2011/02/17
- Re: new module 'setlocale',
Eric Blake <=
- Re: new module 'setlocale', Bruno Haible, 2011/02/17
- Re: new module 'setlocale', Eric Blake, 2011/02/18
Re: locale dependent tests on mingw, Ben Pfaff, 2011/02/12