Ignore:
Timestamp:
06/29/2004 10:13:08 AM (20 years ago)
Author:
Alexander E. Patrakov <alexander@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a734e03
Parents:
6ea075cf
Message:

Explained the benefits of setting LC_ALL properly

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3865 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/profile.xml

    r6ea075cf r181a690  
    3636as an interactive login shell.</para>
    3737
    38 <para>A base <filename>/etc/profile</filename> created below only sets some
    39 environment variables necessary for Bash to accept keystrokes properly,
    40 even in non-English locale. Replace <replaceable>[ll]</replaceable> with the
     38<para>A base <filename>/etc/profile</filename> created below sets some
     39environment variables necessary for native language support. By setting them
     40properly, you get:
     41</para>
     42<itemizedlist>
     43<listitem><para>the output of programs translated into your native
     44language;</para></listitem>
     45<listitem><para>correct classification of characters into letters, digits and
     46other classes - this is necessary for Bash to accept non-ASCII characters
     47in command lines properly in non-English locales;</para></listitem>
     48<listitem><para>the alphabetical sorting order correct for your
     49country;</para></listitem>
     50<listitem><para>good default paper size;</para></listitem>
     51<listitem><para>correct formatting of monetary, time and date
     52values.</para></listitem>
     53</itemizedlist>
     54
     55<para>This script also sets the INPUTRC environment variable that makes
     56<application>Bash</application> and <application>Readline</application> use
     57the <filename>/etc/inputrc</filename> file we created earlier.</para>
     58
     59<para>Replace <replaceable>[ll]</replaceable> below with the
    4160two-letter code for your language (e.g., <quote>en</quote>) and
    4261<replaceable>[CC]</replaceable> with the two-letter code for your country
    4362(e.g., <quote>GB</quote>). Also you may need to specify
    4463(and this is actually the preferred form) your
    45 character encoding (e.g. <quote>iso8859-1</quote>) after a dot (so that the result
    46 is <quote>en_GB.iso8859-1</quote>).
     64character encoding (e.g. <quote>iso8859-1</quote>) after a dot
     65(so that the result is <quote>en_GB.iso8859-1</quote>).
    4766Issue the following command for more information:</para>
    4867
     
    5978<screen><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
    6079# Begin /etc/profile
    61 # Written for Linux From Scratch
    62 # by Alexander E. Patrakov
    6380
    6481export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
     
    6885# End /etc/profile
    6986EOF</userinput></screen>
     87
     88<note><para>The <quote>C</quote> (default) and <quote>en_US</quote>
     89(the recommended one for for US English users) locales are
     90different.</para></note>
    7091
    7192<para>Setting the keyboard layout,
Note: See TracChangeset for help on using the changeset viewer.