Skip to content

Commit 263297b

Browse files
committed
nixos/i18n: Remove special handling of LANGUAGE
Partially revert #179194 which first filtered `extraLocaleSettings.LANGUAGE`. Indeed this environment variable is given precedence according to: https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html So using it will simply make all other `extraLocaleSettings` be ignored in practice, but the OS shouldn't ignore it when aggregating the locales required in general, as this setup should still be legitimate, and it may even be useful if you wish to set it by default and use `env -u LANGUAGE` for some programs.
1 parent cbbd59e commit 263297b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nixos/modules/config/i18n.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ let
1212
"${config.i18n.defaultLocale}/${config.i18n.defaultCharset}"
1313
]
1414
++ lib.pipe config.i18n.extraLocaleSettings [
15-
# TODO: Explain why is this filter added here...
16-
(lib.filterAttrs (n: v: n != "LANGUAGE"))
1715
(lib.mapAttrs (n: v: (sanitizeUTF8Capitalization v)))
1816
(lib.mapAttrsToList (LCRole: lang: lang + "/" + (config.i18n.localeCharsets.${LCRole} or "UTF-8")))
1917
]

0 commit comments

Comments
 (0)