On 2/12/19 10:10 AM, Pierre Labastie via lfs-dev wrote:
First:
localedef -i POSIX -f UTF-8 C.UTF-8
generates warnings and has exit code 1! So it is not
suitable for scripting (at least with "set -e").
Looking at what debian does, they have a patch to generate
a file named "C" in localedata/locales. While the "POSIX" file
shipped with glibc contains only the ASCII characters, the "C"
file generated by debian contains a lot more characters.
So we should test whether the locale generated from "POSIX"
is enough for the Gjs test suite. Otherwise, it is not worth adding
it. If used, the full command (for scripting) should be:
localedef --quiet -i POSIX -f UTF-8 C.UTF-8 || true
note that --quiet prevents warnings to be generated, yet
the exit code is 1.
How about just adding the localedef command to the test procedures for gjs?
We can always overcome a bad return code with
(problem-program || true) &&
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page