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

Can't set different locale for LC_MESSAGES via /etc/default/locale #313

Open
1 task
rltas opened this issue Oct 25, 2022 · 1 comment
Open
1 task

Can't set different locale for LC_MESSAGES via /etc/default/locale #313

rltas opened this issue Oct 25, 2022 · 1 comment
Labels
bug Something isn't working jira Import to Jira medium A medium importance issue

Comments

@rltas
Copy link

rltas commented Oct 25, 2022

cmd /c ver

Microsoft Windows [Version 10.0.22000.1098]

wsl --status

Standard-Distribution: Ubuntu-22.04
Standardversion: 2

Did the problem occur during installation?

  • Yes

What happened?

When setting a different locale for LC_MESSAGES in /etc/default/locale, it's never applied.

$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

What was expected?

The expected outcome would be:

$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

This works on my regular Ubuntu hosts, but not in my WSL instances (both 20.04 and 22.04).

Steps to reproduce

$ sudo locale-gen de_DE.UTF-8

$ locale -a
C
C.UTF-8
de_DE.utf8
en_US.utf8
POSIX

$ sudo update-locale LANG=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8

$ source /etc/default/locale

$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

Restarting the whole instance or interchanging UTF-8 and utf8 doesn't affect the outcome.

Additional information

No response

@jibel jibel added the jira Import to Jira label Apr 13, 2023
@jibel
Copy link
Collaborator

jibel commented Apr 13, 2023

Thanks for your report. Confirmed on the latest update of 22.04.

@jibel jibel added bug Something isn't working medium A medium importance issue labels Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira Import to Jira medium A medium importance issue
Projects
None yet
Development

No branches or pull requests

2 participants