diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2019-03-21 06:23:40 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-03-21 06:26:07 +0000 |
commit | 467f0f9f3ace58ef8ee01c75aaeadf6927012190 (patch) | |
tree | 794952f4772e07ac3c25001ad9146e2a8d508b27 /pkgs/development/libraries/glibc | |
parent | 6a8bc28974cac8b7989471297bff6879ee942e82 (diff) |
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
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r-- | pkgs/development/libraries/glibc/locales.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glibc/locales.nix b/pkgs/development/libraries/glibc/locales.nix index 2b20c17d4500b..0dc191974155c 100644 --- a/pkgs/development/libraries/glibc/locales.nix +++ b/pkgs/development/libraries/glibc/locales.nix @@ -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 '' |