[Nix-dev] defaultLocale

Arie Middelkoop amiddelk at gmail.com
Fri Jan 20 14:29:27 CET 2012


On 20-01-12 13:30, Mathijs Kwik wrote:
> I use:
>
> i18n.defaultLocale = "nl_NL.utf8";
> environment.shellInit =''
>    export LC_MESSAGES=en_US.utf8
> '';
>
> which does what you want, everything nl_NL except for messages/man
> pages/command output.
>
> I do however get strange warnings (not errors) sometimes that certain
> apps fall back to the 'C' locale.
> Other than that, it's good.

Perhaps it would help to add:
 > export LC_COLLATE="C"
I assume that this is enforced by nix when building packages anyway 
(otherwise it could lead to impurities due to differences in sort order?).

I recall that some software (notably postgresql) does not like it if you 
change your LC_COLLATE settings.

Arie


More information about the nix-dev mailing list