Changeset 411697d for chapter07/profile.xml
- Timestamp:
- 04/17/2005 11:32:36 AM (19 years ago)
- Branches:
- 6.1, 6.1.1
- Children:
- ad5100b
- Parents:
- fd698d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/profile.xml
rfd698d8 r411697d 61 61 two-letter code for the desired language (e.g., <quote>en</quote>) and 62 62 <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> 63 appropriate country (e.g., <quote>GB</quote>). 64 <replaceable>[charmap]</replaceable> should be replaced with the 65 canonical charmap for your chosen locale.</para> 70 66 71 67 <para>The list of all locales supported by Glibc can be obtained by running … … 76 72 <beginpage/> 77 73 74 <para>Locales can have a number of synonyms, e.g. <quote>ISO-8859-1</quote> is 75 also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>. 76 Some applications cannot handle the various synonyms correctly, so it is safest 77 to choose the canonical name for a particular locale. To determine the 78 canonical 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 86 will 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 78 92 <para>Once the proper locale settings have been determined, create the 79 93 <filename>/etc/profile</filename> file:</para> … … 82 96 <literal># Begin /etc/profile 83 97 84 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable> 85 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable> 98 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable> 86 99 export INPUTRC=/etc/inputrc 87 100
Note:
See TracChangeset
for help on using the changeset viewer.