Skip to content

Can not install WSL with non-ascii names #14039

@j0hann3s

Description

@j0hann3s

Windows Version

Microsoft Windows [Version 10.0.26100.7462]

WSL Version

2.6.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2-microsoft-standard-WSL2

Distro Version

No response

Other Software

No response

Repro Steps

Running wsl.exe --install --distribution "kali-linux" --name "VeryEnglish" --no-launch will successfully install wsl while running wsl.exe --install --distribution "kali-linux" --name "NötVeryEnglish" --no-launch will fail.

Expected Behavior

Install WSL with the defined name.

Actual Behavior

Using non-ascii letter will give the following error message:

Downloading: Kali Linux Rolling
Installing: Kali Linux Rolling
Invalid distribution name: "NötVeryEnglish".
Error code: Wsl/InstallDistro/Service/RegisterDistro/E_INVALIDARG

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions