Collin Funk wrote: > 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.
These lines merely reflect what the system actually does. > 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. How would you want to do that? If the system has no locale with ASCII or ISO-8859-1 encoding (such as on macOS, Haiku, and Android), you can't force it. > Maybe, it would be better to just improve the Coreutils test suite to > recognize these encoding differences. But that will take some effort. :) Yes, that surely is a bit of work. Bruno