Changeset d295e92 for postlfs/config/profile.xml
- Timestamp:
- 06/29/2004 01:54:49 PM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- c03da74e
- Parents:
- de471fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/profile.xml
rde471fc rd295e92 281 281 <sect3> 282 282 <title><filename>/etc/profile.d/i18n.sh</filename></title> 283 </sect3> 283 284 284 285 <para>This script shows how to set some environment variables necessary for 285 <application>Bash</application> to accept keystrokes properly, even in 286 non-English locales. Replace <replaceable>[ll]</replaceable> with the 287 two-letter code for your language (e.g., <quote>en</quote>) and 288 <replaceable>[cc]</replaceable> with the two-letter code for your country 286 native language support. Setting these variables properly gives you:</para> 287 288 <itemizedlist spacing="compact"> 289 <listitem><para>the output of programs translated into your native 290 language</para></listitem> 291 <listitem><para>correct classification of characters into letters, digits and 292 other classes – this is necessary for <application>Bash</application> to 293 accept keystrokes properly in non-English locales</para></listitem> 294 <listitem><para>the alphabetical sorting order correct for your 295 country</para></listitem> 296 <listitem><para>proper default paper size</para></listitem> 297 <listitem><para>correct formatting of monetary, time and date 298 values</para></listitem> 299 </itemizedlist> 300 301 <para>Replace <replaceable>[ll]</replaceable> with the two-letter code for 302 your language (e.g., <quote>en</quote>) and 303 <replaceable>[CC]</replaceable> with the two-letter code for your country 289 304 (e.g., <quote>GB</quote>). Also you may need to specify (and this is actually 290 305 the preferred form) your character encoding (e.g., <quote>iso8859-1</quote>) … … 299 314 <screen><userinput><command>locale -a</command></userinput></screen> 300 315 301 <para> Now, whenyou are sure about your locale settings, create the316 <para>After you are sure about your locale settings, create the 302 317 <filename>/etc/profile.d/i18n.sh</filename> file:</para> 303 318 304 319 <screen><userinput><command>cat > /etc/profile.d/i18n.sh << "EOF"</command> 305 320 # Set up i18n variables 306 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[cc]</replaceable> 307 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[cc]</replaceable> 308 <command>EOF</command></userinput></screen> 321 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable> 322 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable> 323 <command>EOF</command></userinput></screen> 324 325 <para>Note: Setting LC_ALL sets the same value for all locale categories. For 326 better control, you may prefer to set values individually for all categories 327 listed in the output of the <command>locale</command> command.</para> 328 329 <sect3> 330 <title><filename>Other initialization values</filename></title> 309 331 310 332 <para>Other initialization can easily be added to the <filename>profile</filename>
Note:
See TracChangeset
for help on using the changeset viewer.