Bug 35534 - LC_MESSAGES misses the last S
Summary: LC_MESSAGES misses the last S
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 01:04 UTC by Florian Kriener
Modified: 2011-03-29 08:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Florian Kriener 2011-03-22 01:04:36 UTC
I was wondering, why systemd-fsck keeps to refuse to speak in english even though I have this in /etc/locale.conf

LANG=de_DE.UTF-8
LC_MESSAGES=C

The reason seems to be line 57 of locale-setup.c:

[VARIABLE_LC_MESSAGES] = "LC_MESSAGE",

which I suspect to lead to this output of systemctl show-environment:

LANG=de_DE.UTF-8
LC_MESSAGE=C

which in turn made it into the man page of locale.conf.
Comment 1 Lennart Poettering 2011-03-28 16:39:29 UTC
Ah, good catch. Fixed in git. Thanks!
Comment 2 Florian Kriener 2011-03-29 00:02:27 UTC
Your welcome, and I am happy I could help. :-) However, you have forgotten to update the man page as well. Here are the relevant lines from man/locale.conf.xml:

  <example>
      <title>German locale with english messages</title>

      <para><filename>/etc/locale.conf:</filename></para>

      <programlisting>LANG=de_DE.UTF-8
      LC_MESSAGE=C</programlisting>
  </example>

It does not break anything in systemd but the user might get confused, thats why I am reopening the bug.
Comment 3 Lennart Poettering 2011-03-29 03:12:20 UTC
Ah, you win! ;-)

But now I hope I fixed all remaining problems. Please check!
Comment 4 Florian Kriener 2011-03-29 08:04:51 UTC
Thank you for fixing it. I took a quick glance at it and it looks good, but I guess you know that. :-) I didn't test it myself, because I'm using the debian package right now.


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.