-
Notifications
You must be signed in to change notification settings - Fork 822
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
Unable to correctly set the locale on Fedora-based distributions. #11605
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging |
Diagnostic information
|
@peter-777: What's the locale setting in Windows ? WSL inherits that settings by default |
@OneBlue The locale setting for Windows is set to Japanese. |
Interesting. Is systemd enabled in your distribution ? Can you share the output of |
Yes, systemd is enabled in my distribution. Here is the output of cat /etc/wsl.conf:
|
Ok thank you @peter-777. Also, can you share how you installed that distribution ? |
@OneBlue
The second one was to verify if the same issue occurs with a commonly available Fedora-based distribution. To do this, I installed Oracle Linux using the following command:
|
Ok I see. Can you share the output of |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue. Thank you! |
Windows Version
Microsoft Windows [Version 10.0.22631.3593]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Fedora 40 and Oracle Linux 9.1
Other Software
No response
Repro Steps
Expected Behavior
Actual Behavior
Diagnostic Logs
Here are the findings from the experiment:
By adding
printenv LANG
to the beginning of/etc/profile
to check the variable, it shows en_US.UTF-8.Strangely, when setting LANG in
/etc/default/locale
, the content is correctly reflected. If the file does not exist, it defaults to en_US.UTF-8.Workaround:
Creating a symbolic link from /etc/locale.conf to /etc/default/locale resolves the issue.
The text was updated successfully, but these errors were encountered: