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

localectl set-locale fails with "Failed to issue method call: Invalid Locale data." if locale is passed directly #6070

Closed
mbiebl opened this issue Jun 1, 2017 · 0 comments
Labels
locale RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@mbiebl
Copy link
Contributor

mbiebl commented Jun 1, 2017

Submission type

  • Request for enhancement (RFE)

systemd version the issue has been seen with

v231 (Fedora 25)
v232 (Debian stretch)

$ localectl list-locales 
C.UTF-8
de_DE.utf8
en_US.utf8

$ localectl set-locale en_US.utf8
Failed to issue method call: Invalid Locale data.

I know that the man page says to use "LANG=en_US.utf8" and this works, but this is unintuitive as shown by this bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798464.

Given the output of list-locales it's not surprising that users feed that directly to set-locale.
We should allow localectl set-locale C.UTF-8

@mbiebl mbiebl added locale RFE 🎁 Request for Enhancement, i.e. a feature request labels Jun 1, 2017
yuwata added a commit to yuwata/systemd that referenced this issue May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
locale RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

2 participants