Bug 74157 - bash-completion/localectl: argument after set-locale is incorrect
Summary: bash-completion/localectl: argument after set-locale is incorrect
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-28 19:09 UTC by Igor Gnatenko
Modified: 2014-02-07 07:22 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Igor Gnatenko 2014-01-28 19:09:40 UTC
Steps to reproduce
1. Write "localectl set-locale" in term
2. try to use <Tab>

Actual results:
As first argument we can choose from locales like this:
$ localectl set-locale 
Display all 807 possibilities? (y or n)

Expected results:
As first argument we can choose from locale vars (according to locale(7)) like this:
$ localectl set-locale
LC_COLLATE= LC_CTYPE= LC_MONETARY= LC_MESSAGES= LC_NUMERIC= LC_TIME= LC_ALL=

Additional info:
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).
Comment 1 Alexei Panov 2014-01-29 10:28:11 UTC
I confirm this bug.
It reproduced only with bash-completion.
In zsh completion all works fine.
Comment 2 Zbigniew Jedrzejewski-Szmek 2014-02-06 17:02:36 UTC
Fixed in http://cgit.freedesktop.org/systemd/systemd/commit/?id=627a98d.
Comment 3 Igor Gnatenko 2014-02-07 07:22:40 UTC
(In reply to comment #2)
> Fixed in http://cgit.freedesktop.org/systemd/systemd/commit/?id=627a98d.
Thank you!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.