r3865 - in trunk/BOOK: . chapter01 chapter07

alexander at linuxfromscratch.org alexander at linuxfromscratch.org
Tue Jun 29 03:13:10 PDT 2004

Author: alexander
Date: 2004-06-29 04:13:08 -0600 (Tue, 29 Jun 2004)
New Revision: 3865

Explained the benefits of setting LC_ALL properly

Modified: trunk/BOOK/chapter01/changelog.xml
--- trunk/BOOK/chapter01/changelog.xml	2004-06-28 23:20:32 UTC (rev 3864)
+++ trunk/BOOK/chapter01/changelog.xml	2004-06-29 10:13:08 UTC (rev 3865)
@@ -77,6 +77,9 @@
+<listitem><para>June 29, 2004 [alexander]: Explained the benefits of setting
+LC_ALL properly.</para></listitem>
 <listitem><para>June 28, 2004 [winkie]: Upgraded to Udev 028, and dropped the
 Udev permissions patch.</para></listitem>

Modified: trunk/BOOK/chapter07/profile.xml
--- trunk/BOOK/chapter07/profile.xml	2004-06-28 23:20:32 UTC (rev 3864)
+++ trunk/BOOK/chapter07/profile.xml	2004-06-29 10:13:08 UTC (rev 3865)
@@ -35,15 +35,34 @@
 <filename>~/.bash_profile</filename> are read when the shell is invoked
 as an interactive login shell.</para>
-<para>A base <filename>/etc/profile</filename> created below only sets some
-environment variables necessary for Bash to accept keystrokes properly,
-even in non-English locale. Replace <replaceable>[ll]</replaceable> with the
+<para>A base <filename>/etc/profile</filename> created below sets some
+environment variables necessary for native language support. By setting them
+properly, you get:
+<listitem><para>the output of programs translated into your native
+<listitem><para>correct classification of characters into letters, digits and
+other classes - this is necessary for Bash to accept non-ASCII characters
+in command lines properly in non-English locales;</para></listitem>
+<listitem><para>the alphabetical sorting order correct for your
+<listitem><para>good default paper size;</para></listitem>
+<listitem><para>correct formatting of monetary, time and date
+<para>This script also sets the INPUTRC environment variable that makes
+<application>Bash</application> and <application>Readline</application> use
+the <filename>/etc/inputrc</filename> file we created earlier.</para>
+<para>Replace <replaceable>[ll]</replaceable> below with the
 two-letter code for your language (e.g., <quote>en</quote>) and
 <replaceable>[CC]</replaceable> with the two-letter code for your country
 (e.g., <quote>GB</quote>). Also you may need to specify
 (and this is actually the preferred form) your
-character encoding (e.g. <quote>iso8859-1</quote>) after a dot (so that the result
-is <quote>en_GB.iso8859-1</quote>).
+character encoding (e.g. <quote>iso8859-1</quote>) after a dot
+(so that the result is <quote>en_GB.iso8859-1</quote>).
 Issue the following command for more information:</para>
 <screen><userinput>man 3 setlocale</userinput></screen>
@@ -58,8 +77,6 @@
 <screen><userinput>cat > /etc/profile << "EOF"
 # Begin /etc/profile
-# Written for Linux From Scratch
-# by Alexander E. Patrakov
 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
@@ -68,6 +85,10 @@
 # End /etc/profile
+<note><para>The <quote>C</quote> (default) and <quote>en_US</quote>
+(the recommended one for for US English users) locales are
 <para>Setting the keyboard layout,
 the screen font and the locale-related environment variables
 are the only internationalization steps needed to support

Modified: trunk/BOOK/general.ent
--- trunk/BOOK/general.ent	2004-06-28 23:20:32 UTC (rev 3864)
+++ trunk/BOOK/general.ent	2004-06-29 10:13:08 UTC (rev 3865)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20040628">
-<!ENTITY releasedate "June 28, 2004">
+<!ENTITY version "SVN-20040629">
+<!ENTITY releasedate "June 29, 2004">
 <!ENTITY milestone "6.0">
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/">

More information about the lfs-book mailing list