gen-languages needs en_US.UTF-8 at build time. If it was not installed,
pkg_setup fell back to the user's locale or died. Generate it instead.
Bug: https://bugs.gentoo.org/969468
Signed-off-by: Matt Turner <mattst88@gentoo.org>
test_languages and test_language were patched out because the daemon is
run with LC_ALL=en_IE.UTF-8 and reports C as the system locale if that
locale is not installed. Generate the locale and apply the patch only
where that is not possible.
Bug: https://bugs.gentoo.org/903347
Signed-off-by: Matt Turner <mattst88@gentoo.org>
The tests call setlocale() with cs_CZ.UTF-8, en_GB.UTF-8, fr_FR.UTF-8
and sv_SE.utf8, and fail if any of them is missing.
Closes: https://bugs.gentoo.org/939520
Signed-off-by: Matt Turner <mattst88@gentoo.org>
auth-nonascii was skipped if the cs_CZ.UTF-8 and cs_CZ.ISO-8859-2
locales were not installed. Generate them instead.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
src_test died if en_US.UTF-8 was not installed. Generate it instead,
along with fr_FR.UTF-8, which the calc tests switch to.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
kcountrytest and kcountrysubdivisiontest set LANG=fr_CH.UTF-8 and were
skipped because the locale is not necessarily installed. Generate it
and run them.
Bug: https://bugs.gentoo.org/823816
Signed-off-by: Matt Turner <mattst88@gentoo.org>
The test was disabled with a comment saying that it requires the de_DE
locale, which is how upstream describes the locale_test option. The
test itself calls setlocale(LC_NUMERIC, "fr_FR.UTF-8"), in 0.10.0,
0.11.0 and master alike. It passes without that locale too, but then
checks nothing that depends on the locale.
Generate fr_FR.UTF-8 and enable the test on glibc.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
test-book-client-custom-summary and test-book-client-view-operations
abort if en_US.UTF-8 is not installed. Generate it.
The other locales the tests name (de_DE, fr_CA and more) are only
passed to ICU, so drop the comment about tests failing due to missing
locales.
Bug: https://bugs.gentoo.org/501834
Signed-off-by: Matt Turner <mattst88@gentoo.org>
test-qof and test-gnc-numeric were disabled if the en_US, en_GB and
fr_FR locales were not installed. Generate them instead.
Bug: https://bugs.gentoo.org/647596
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Test suites, and occasionally builds, call setlocale(3) with specific
locales and fail if they are not available. Which locales exist is
system configuration (/etc/locale.gen), so an ebuild can neither depend
on them nor expect them to be present.
Add elocale_gen, which compiles the requested locales with localedef
into a directory under ${T} and exports LOCPATH so that glibc finds
them.
bash itself does not see LOCPATH, and warns that it cannot change locale
when an ebuild assigns LC_ALL or similar to a locale that exists only in
that directory. elocale_gen --set exports the variable without the
warning.
Signed-off-by: Matt Turner <mattst88@gentoo.org>