Merge pull request #58009 from Mic92/locales

glibcLocales: also build C.UTF-8
This commit is contained in:
Jörg Thalheim 2019-03-21 09:40:42 +00:00 committed by GitHub
commit 7957a93520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
''