diff options
author | Krejzi <krejzi@linuxfromscratch.org> | 2013-12-21 20:18:45 +0000 |
---|---|---|
committer | Krejzi <krejzi@linuxfromscratch.org> | 2013-12-21 20:18:45 +0000 |
commit | 62750a1dc9625064c409c6976c5fbf4f2dae4a58 (patch) | |
tree | 8946ba2bf4262ab68504a982883557baa7ac0273 | |
parent | 6463df6fa6a6c9538aa6d8c80006e0835d32eb50 (diff) |
Expand locale page to contain localectl examples
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10408 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter07/locale.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chapter07/locale.xml b/chapter07/locale.xml index f4c7443dc..2f661fb5a 100644 --- a/chapter07/locale.xml +++ b/chapter07/locale.xml @@ -118,6 +118,23 @@ LC_ALL=<locale name> locale int_prefix</userinput></screen> <literal>LANG=<replaceable><ll>_<CC>.<charmap><@modifiers></replaceable></literal> EOF</userinput></screen> + <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 |