Skip to content

Can't type accented characters (éàèç) and Umlauts (äöü) in SLiM #29802

@das-g

Description

@das-g

Issue description

When typing Umlauts or accented characters in the SLiM login mask, the keystrokes seem to be completely discarded, rendering users that have these characters in their password unable to log in to their Desktop Manger using SLiM.

Steps to reproduce

  1. Connect a keyboard that allows to type Umlauts and/or accented characters (in my case: a Swiss German one)
  2. configure NixOS to launch the XServer and to use a key layout corresponding to that keyboard:
    # In /etc/nixos/configuration.nix:
      # ...
      services.xserver.enable = true;
      services.xserver.layout = "ch,de";
      # ...
    
  3. use it:
    # In bash:
    sudo nixos-rebuild boot
    sudo reboot
    

Expected

  • Users with umlauts and/or accented characters in their passwords can now log in.

Observed

  • When queried for the username and typing an Umlaut or an accented character, nothing appears
    • (This might be expected. I don't know whether these are valid in a UNIX user name.)
  • When queried for the password and typing an Umlaut or an accented character, nothing appears
  • When queried for the password and typing an ASCII character, a star appears
  • When logging in as a user that has an ASCII-only password, Umlauts or an accented characters are available in the desktop manager (e.g. GNOME 3) once that has started. (I.e., the layout setting above seems to work, except for in SLiM.)

Nota bene

With

  # Select internationalisation properties.
  i18n = {
    consoleFont = "Lat2-Terminus16";
    consoleKeyMap = "de_CH-latin1";
    defaultLocale = "de_CH.UTF-8";
  };

in /etc/nixos/configuration.nix, these users with not-(only-)ASCII passwords can log in on the system terminal (= non-graphical).

Technical details

  • System: NixOS: 17.03.1858.3d04a557b7 (Gorilla)
  • Nix version: nix-env (Nix) 1.11.14
  • Nixpkgs version: "17.03.1858.3d04a557b7"
  • Sandboxing enabled: build-use-sandbox = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions