WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Command output is localized based on regional settings

Open gudenuff opened this issue 10 years ago • 4 comments

  • A brief description Command output is localized based on regional settings, not on location or system locale. For example, my current locale is EN-US, default language is set to EN-US, my Region is set to the US, although my time and date formats are Russian.
  • Expected results Shell must either inherit system locale, or it must ask the user what locale and localization must be set during the setup process.
  • Actual results (with terminal output if applicable) Shell seems to automatically set its localization settings based on time and date formats specified in system. For example, all messages output to stdout are currently displayed in Russian, when I am waiting them be in English.
  • Your Windows build number 10.0.14393.105
  • Steps / commands required to reproduce the error Run any system utility such as apt-get yum
  • Strace of the failing command
  • Required packages and commands to install

See our contributing instructions for assistance.

gudenuff avatar Sep 06 '16 17:09 gudenuff

Here's the sample screen of command output for the apt-get command:

image

gudenuff avatar Sep 08 '16 10:09 gudenuff

Looking up the %appdata%\Local\lxss\rootfs\var\log\apt\history.log shows that apt-get automatically installed Russian language pack without asking for confirmation:

Start-Date: 2016-09-06  11:49:14
Commandline: /usr/bin/apt install -y language-pack-ru
Install: language-pack-ru:amd64 (14.04+20160720), language-pack-ru-base:amd64 (14.04+20160720, automatic)
End-Date: 2016-09-06  11:49:29

gudenuff avatar Sep 09 '16 14:09 gudenuff

Agreed. It should be an option during install. I've made this change and now you will be asked during install if you want to set your locale to the NT locale.

benhillis avatar Sep 09 '16 15:09 benhillis

@benhillis Thanks, Ben!

gudenuff avatar Sep 09 '16 16:09 gudenuff