Bug 974039 - localectl: Failed to issue method call
localectl: Failed to issue method call
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
19
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-13 06:39 EDT by Matthias Runge
Modified: 2013-07-12 14:14 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-13 09:43:07 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matthias Runge 2013-06-13 06:39:02 EDT
Description of problem:
[root@turing ~]# localectl set-locale en_US.utf8
Failed to issue method call: Invalid argument

[root@turing ~]# localectl list-locales| grep en_US.utf8
en_US.utf8

I think that also applies for other locales, in fact, I didnt found any working.

Version-Release number of selected component (if applicable):
rpm -q systemd
systemd-204-6.fc19.x86_64
Comment 1 Harald Hoyer 2013-06-13 09:43:07 EDT
# man localectl 
...
       set-locale LOCALE...
           Set the system locale. This takes one or more assignments such as "LANG=de_DE.utf8", "LC_MESSAGES=en_GB.utf8", and so on. See locale(7) for
           details on the available settings and their meanings. Use list-locales for a list of available locales (see below).
...

# localectl set-locale LANG=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
# localectl 
   System Locale: LANG=de_DE.UTF-8
                  LC_MESSAGES=en_US.UTF-8
       VC Keymap: de-latin1
      X11 Layout: n/a
Comment 2 Steve Tyler 2013-07-12 12:50:23 EDT
The syntax for "localectl set-locale" is not clear from the man page.

At the least, the man page should provide examples like the one in Comment 1:
# localectl set-locale LANG=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8

Further, the syntax should be specified explicitly:

localectl set-locale [LANG=<locale-spec>] [LC_MESSAGES=<locale-spec>] ...
(List all possibilities, here.)

"localectl -h" should show the same information.

Please reopen this for the inadequate documentation.
Comment 3 Steve Tyler 2013-07-12 13:01:05 EDT
And explicitly refer to the "locale" command:

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Comment 4 Steve Tyler 2013-07-12 14:14:40 EDT
For reference, here is the online documentation:
http://www.freedesktop.org/software/systemd/man/localectl.html

Note You need to log in before you can comment on or make changes to this bug.