3
0
Fork 0
forked from mirrors/nixpkgs

nixos/i18n: always generate C locale

This commit is contained in:
Sandro Jäckel 2022-07-07 14:25:13 +02:00
parent 3014367d9e
commit 59128a34c3
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -55,14 +55,18 @@ with lib;
type = types.listOf types.str; type = types.listOf types.str;
default = builtins.map (l: l + "/UTF-8") default = builtins.map (l: l + "/UTF-8")
(unique ( (unique (
[ config.i18n.defaultLocale ] ++ [
(attrValues (filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings)) "C.UTF-8"
config.i18n.defaultLocale
] ++ (attrValues (filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings))
)); ));
defaultText = literalExpression '' defaultText = literalExpression ''
builtins.map (l: l + "/UTF-8") builtins.map (l: l + "/UTF-8")
(unique ( (unique (
[ config.i18n.defaultLocale ] ++ [
(attrValues (filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings)) "C.UTF-8"
config.i18n.defaultLocale
] ++ (attrValues (filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings))
)) ))
''; '';
example = ["en_US.UTF-8/UTF-8" "nl_NL.UTF-8/UTF-8" "nl_NL/ISO-8859-1"]; example = ["en_US.UTF-8/UTF-8" "nl_NL.UTF-8/UTF-8" "nl_NL/ISO-8859-1"];