[lfs-book] r10408 - branches/systemd/BOOK/chapter07

krejzi at higgs.linuxfromscratch.org krejzi at higgs.linuxfromscratch.org
Sat Dec 21 12:18:45 PST 2013

Author: krejzi
Date: Sat Dec 21 12:18:45 2013
New Revision: 10408

Expand locale page to contain localectl examples


Modified: branches/systemd/BOOK/chapter07/locale.xml
--- branches/systemd/BOOK/chapter07/locale.xml	Sat Dec 21 12:05:07 2013	(r10407)
+++ branches/systemd/BOOK/chapter07/locale.xml	Sat Dec 21 12:18:45 2013	(r10408)
@@ -118,6 +118,23 @@
+  <para>Note that you can modify <filename>/etc/locale.conf</filename> with
+  Systemd <command>localectl</command> utility. To use <command>localectl</command>
+  for the example above, run:</para>
+<screen><userinput>localectl set-locale LANG="<replaceable><ll>_<CC>.<charmap><@modifiers>"</replaceable></userinput></screen>
+  <para>You can also specify other language specific environment variables such
+  as <envar>LANG</envar>, <envar>LC_CTYPE</envar>, <envar>LC_NUMERIC</envar> or
+  any other environment variable from <command>locale</command> output. Just
+  seperate them with a space. An example where <envar>LANG</envar> is set as
+  en_US.UTF-8 but <envar>LC_CTYPE</envar> is set as just en_US is:</para>
+<screen><userinput>localectl set-locale LANG="en_US.UTF-8" LC_CTYPE="en_US"</userinput></screen>
+  <note><para>Please note that <command>localectl</command> command can
+  be used  only on a system booted with Systemd.</para></note>
   <para>The <quote>C</quote> (default) and <quote>en_US</quote> (the recommended
   one for United States English users) locales are different. <quote>C</quote>
   uses the US-ASCII 7-bit character set, and treats bytes with the high bit set

More information about the lfs-book mailing list