Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL command line displays in wrong language #11087

Closed
1 of 2 tasks
black-pwq opened this issue Jan 28, 2024 · 2 comments
Closed
1 of 2 tasks

WSL command line displays in wrong language #11087

black-pwq opened this issue Jan 28, 2024 · 2 comments
Assignees

Comments

@black-pwq
Copy link

black-pwq commented Jan 28, 2024

Windows Version

Microsoft Windows [Version 10.0.19045.3930]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

unrelated

Distro Version

unrelated

Other Software

No response

Repro Steps

Simply type wsl --help and observe the displayed language. (not the language inside a distro)

In my case, it is Chinese which isn't consistent with my display language:

PS > wsl --help
版权所有 (c) Microsoft Corporation。保留所有权利。
有关此产品的隐私信息,请访问 https://aka.ms/privacy。

用法: wsl.exe [参数] [选项...][命令行]

运行 Linux 二进制文件的参数:

   如果未提供命令行,wsl.exe 将启动默认 shell。
blabla...

It showed in correct language (i.e. the display language set on my machine which is English) at the first time I installed it via command line. However, the command line result is present in Chinese after I type wsl --update now.

Few things may help locate the issue:

  • The display language and preferred language of the current user are both English, though I use Chinese as my secondary language.
    image
  • DISM may give more info:
    PS > dism /online /get-intl
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Image Version: 10.0.19045.3930
    
    Reporting online international settings.
    
    Default system UI language : zh-CN
    The UI language fallback is : en-US
    System locale : zh-CN
    Default time zone : China Standard Time
    Active keyboard(s) : 0409:00000409, 0804:{6A498709-E00B-4C45-A018-8F9E4081AE40}{82590C13-F4DD-44F4-BA1D-8667246FDF8E}, 0804:{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}{FA550B04-5AD7-411F-A5AC-CA038EC515D7}
    Keyboard layered driver : Not installed.
    
    Installed language(s): en-US
      Type : Fully localized language.
    Installed language(s): zh-CN
      Type : Partially localized language, MUI type.
      Fallback Languages en-US
    
    The operation completed successfully.
  • All of other built-in commands, like winget or ping shows the result in English which is expected.

Expected Behavior

Show the correct language according to the display language in the current user settings.

Actual Behavior

Display in the wrong language as discussed above.

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@OneBlue OneBlue self-assigned this Jan 30, 2024
@OneBlue
Copy link
Collaborator

OneBlue commented Mar 13, 2024

Solved with 2.0.15

@OneBlue OneBlue closed this as completed Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants