[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module 'setlocale'
From: |
Bruno Haible |
Subject: |
Re: new module 'setlocale' |
Date: |
Fri, 18 Feb 2011 03:40:19 +0100 |
User-agent: |
KMail/1.9.9 |
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;
}
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.
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.
Then we should be able to report a bug to the Haiku people.
Bruno
--
In memoriam Giordano Bruno <http://en.wikipedia.org/wiki/Giordano_Bruno>
- 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 <=
- Re: new module 'setlocale', Eric Blake, 2011/02/17
- 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