Bug 974039 - localectl: Failed to issue method call
Summary: localectl: Failed to issue method call
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-13 10:39 UTC by Matthias Runge
Modified: 2013-07-12 18:14 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-13 13:43:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matthias Runge 2013-06-13 10:39:02 UTC
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 13:43:07 UTC
# 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 16:50:23 UTC
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 17:01:05 UTC
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 18:14:40 UTC
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.