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>