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 ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature