diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index d6727f6ef..16da4acf8 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -82,6 +82,9 @@ first a summary, then a detailed log.
+April 17, 2005 [matt]: Use canonical charmaps in /etc/profile
+and don't set LC_ALL (Ken Moffat and Alexander Patrakov)
+
April 16, 2005 [matt]: Reword handling of hotpluggable devices
now that we install the hotplug package (Andrew Benton)
diff --git a/chapter07/profile.xml b/chapter07/profile.xml
index b5f7f1686..da521b847 100644
--- a/chapter07/profile.xml
+++ b/chapter07/profile.xml
@@ -60,13 +60,9 @@ environment variable that makes Bash and
Replace [ll] below with the
two-letter code for the desired language (e.g., en
) and
[CC] with the two-letter code for the
-appropriate country (e.g., GB
). It may also be
-necessary to specify (and this is actually the preferred form) the
-character encoding (e.g. iso8859-1
) after a dot (so
-that the result is en_GB.iso8859-1
). Issue the
-following command for more information:
-
-man 3 setlocale
+appropriate country (e.g., GB
).
+[charmap] should be replaced with the
+canonical charmap for your chosen locale.
The list of all locales supported by Glibc can be obtained by running
the following command:
@@ -75,14 +71,31 @@ the following command:
+Locales can have a number of synonyms, e.g. ISO-8859-1
is
+also referred to as iso8859-1
and iso88591
.
+Some applications cannot handle the various synonyms correctly, so it is safest
+to choose the canonical name for a particular locale. To determine the
+canonical name, run the following command, where
+[locale name] is the output given by
+locale -a for your preferred locale
+(en_GB.iso88591
in our example).
+
+LC_ALL=[locale name] locale charmap
+
+For the en_GB.iso88591
locale, the above command
+will print:
+
+ISO-8859-1
+
+This results in in a final locale setting of en_GB.ISO-8859-1
.
+
Once the proper locale settings have been determined, create the
/etc/profile file:
cat > /etc/profile << "EOF"
# Begin /etc/profile
-export LC_ALL=[ll]_[CC]
-export LANG=[ll]_[CC]
+export LANG=[ll]_[CC].[charmap]
export INPUTRC=/etc/inputrc
# End /etc/profile