Changeset 411697d


Ignore:
Timestamp:
04/17/2005 11:32:36 AM (19 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
6.1, 6.1.1
Children:
ad5100b
Parents:
fd698d8
Message:
  • Use canonical charmaps in /etc/profile and don't set LC_ALL (merge r4984 from trunk)

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    rfd698d8 r411697d  
    8383</listitem>
    8484
     85<listitem><para>April 17, 2005 [matt]: Use canonical charmaps in /etc/profile
     86and don't set LC_ALL (Ken Moffat and Alexander Patrakov)</para></listitem>
     87
    8588<listitem><para>April 16, 2005 [matt]: Reword handling of hotpluggable devices
    8689now that we install the hotplug package (Andrew Benton)</para></listitem>
  • chapter07/profile.xml

    rfd698d8 r411697d  
    6161two-letter code for the desired language (e.g., <quote>en</quote>) and
    6262<replaceable>[CC]</replaceable> with the two-letter code for the
    63 appropriate country (e.g., <quote>GB</quote>). It may also be
    64 necessary to specify (and this is actually the preferred form) the
    65 character encoding (e.g.  <quote>iso8859-1</quote>) after a dot (so
    66 that the result is <quote>en_GB.iso8859-1</quote>).  Issue the
    67 following command for more information:</para>
    68 
    69 <screen><userinput>man 3 setlocale</userinput></screen>
     63appropriate country (e.g., <quote>GB</quote>).
     64<replaceable>[charmap]</replaceable> should be replaced with the
     65canonical charmap for your chosen locale.</para>
    7066
    7167<para>The list of all locales supported by Glibc can be obtained by running
     
    7672<beginpage/>
    7773
     74<para>Locales can have a number of synonyms, e.g. <quote>ISO-8859-1</quote> is
     75also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>.
     76Some applications cannot handle the various synonyms correctly, so it is safest
     77to choose the canonical name for a particular locale.  To determine the
     78canonical name, run the following command, where
     79<replaceable>[locale name]</replaceable> is the output given by
     80<command>locale -a</command> for your preferred locale
     81(<quote>en_GB.iso88591</quote> in our example).</para>
     82
     83<screen><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen>
     84
     85<para>For the <quote>en_GB.iso88591</quote> locale, the above command
     86will print:</para>
     87
     88<screen>ISO-8859-1</screen>
     89
     90<para>This results in in a final locale setting of <quote>en_GB.ISO-8859-1</quote>.</para>
     91
    7892<para>Once the proper locale settings have been determined, create the
    7993<filename>/etc/profile</filename> file:</para>
     
    8296<literal># Begin /etc/profile
    8397
    84 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
    85 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
     98export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable>
    8699export INPUTRC=/etc/inputrc
    87100
Note: See TracChangeset for help on using the changeset viewer.