Hi Bruno,

Bruno Haible via Gnulib discussion list <bug-gnulib@gnu.org> writes:

> Some portability problems are specific to Haiku. Therefore it makes sense
> to mark some test failures as "expected failure on Haiku only".

Makes sense, thanks.

Somewhat related, I recently tried Haiku for the first time and noticed
test failures in Coreutils, for example, due to the following lines in
localcharset.c:

See the following lines:

        /* On Mac OS X, all modern locales use the UTF-8 encoding.
           BeOS and Haiku have a single locale, and it has UTF-8 encoding.  */
# if (defined __APPLE__ && defined __MACH__) || defined __BEOS__ || defined 
__HAIKU__
        codeset = "UTF-8";
# else

Often test suites use the C locale and assume it is ASCII. But on Haiku
you get test failures due to ' being replaced with U+2018 or U+2019, for
example.

I was thinking maybe adding a way to force ASCII on Haiku, but that
seems to hacky.

Maybe, it would be better to just improve the Coreutils test suite to
recognize these encoding differences. But that will take some effort. :)

Collin

Reply via email to