From 62750a1dc9625064c409c6976c5fbf4f2dae4a58 Mon Sep 17 00:00:00 2001 From: Krejzi Date: Sat, 21 Dec 2013 20:18:45 +0000 Subject: [PATCH] Expand locale page to contain localectl examples git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10408 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/locale.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 LANG=<ll>_<CC>.<charmap><@modifiers> EOF + Note that you can modify /etc/locale.conf with + Systemd localectl utility. To use localectl + for the example above, run: + +localectl set-locale LANG="<ll>_<CC>.<charmap><@modifiers>" + + You can also specify other language specific environment variables such + as LANG, LC_CTYPE, LC_NUMERIC or + any other environment variable from locale output. Just + seperate them with a space. An example where LANG is set as + en_US.UTF-8 but LC_CTYPE is set as just en_US is: + +localectl set-locale LANG="en_US.UTF-8" LC_CTYPE="en_US" + + Please note that localectl command can + be used only on a system booted with Systemd. + The C (default) and en_US (the recommended one for United States English users) locales are different. C uses the US-ASCII 7-bit character set, and treats bytes with the high bit set