glibcLocales: also build C.UTF-8

Previously we only build C.UTF-8 as part of the locale-archive
that comes with the glibc core package.
However for consistent use of LANG=C.UTF-8 we also want support
in our glibcLocales as well.
fixes https://github.com/NixOS/nixpkgs/issues/57974
This commit is contained in:
Jörg Thalheim 2019-03-21 06:23:40 +00:00
parent 6a8bc28974
commit 467f0f9f3a
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ callPackage ./common.nix { inherit stdenv; } {
''
mkdir -p $TMPDIR/"${buildPackages.stdenv.cc.libc.out}/lib/locale"
echo 'C.UTF-8/UTF-8 \' >> ../glibc-2*/localedata/SUPPORTED
# Hack to allow building of the locales (needed since glibc-2.12)
sed -i -e 's,^$(rtld-prefix) $(common-objpfx)locale/localedef,localedef --prefix='$TMPDIR',' ../glibc-2*/localedata/Makefile
''