Locales: Difference between revisions

imported>Vaci
mNo edit summary
imported>L0b0
Enable locale support in Nix shell
Line 5: Line 5:
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
</syntaxhighlight>
== Enable locale support in Nix shell ==
To support locales within a Nix shell, for example to get localised command output, you need to do something similar:
<syntaxhighlight lang=bash>
pkgs.mkShell {
  # [other code omitted]
  LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
}
</syntaxhighlight>
</syntaxhighlight>