[Nix-dev] Umlauts in NixOS

Alexander Foremny alexanderforemny at gmail.com
Wed Jul 11 15:06:35 CEST 2012


I managed to solve the problem by creating more locales in configuration.nix.

> $ cat /etc/nixos/configuration.nix | grep supportedLocales
> supportedLocales = [ "de_DE/ISO-8859-1" "de_DE at euro/ISO-8859-15" "de_DE.UTF-8/UTF-8" "en_US/ISO-8859-1" "en_US.UTF-8/UTF-8" ];

I am suspecting that having the de_DE/ISO-8859-1 locale along with a
ISO-8859-1 font encoding in XTerm solves this issue. However, I
switched to a 8859-15 and probably the de_DE at euro/ISO-8859-15 helps
here. But I am only guessing.

Thank you very much for the hint, Lluís!

2012/7/11 Alexander Foremny <alexanderforemny at gmail.com>:
> Hello,
>
> I changed my .Xdefaults to include the following two lines:
>
>> XTerm*font:               -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
>> XTerm*utf8:               true
>
> The font looks quite nice! (Thanks for that.) But unfortunately
> umlauts are still not working, problems are still the same as in my
> original e-mail.
>
> Regards,
> Alexander Foremny
>
> 2012/7/11 Lluís Batlle i Rossell <viric at viric.name>:
>> On Wed, Jul 11, 2012 at 10:56:49AM +0200, Alexander Foremny wrote:
>>> Hello,
>>>
>>> I am struggling with a few minor issues in NixOS and finally want to
>>> ask how to solve them. My problem is that German umlauts are not fully
>>> working.
>>>
>>> I can type umlauts in X11 applications and they get displayed
>>> correctly. I cannot type umlauts in X11 terminal applications and they
>>> don't get displayed correctly. The same applies to the console.
>>>
>>> I am using xterm as terminal application and zsh as user shell. Here
>>> is some output I consider relevant to this issue.
>>
>> You have to tell xterm you want an utf8 terminal.
>>
>> I have in ~/.Xdefaults:
>> XTerm*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
>> XTerm*utf8: true
>>
>> (the defaults are loaded on the X session start; use xrdb to load them at will)
>>
>> There are command line parameters for xterm for those, too.
>>
>> Regards,
>> Lluís.


More information about the nix-dev mailing list