Changeset 643f8be for BOOK/bootscripts


Ignore:
Timestamp:
Feb 21, 2006, 1:06:39 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
881ee9d
Parents:
c135b4d
Message:

r701@server (orig r699): manuel | 2005-11-13 02:26:01 -0800
Improve the heuristic for determining a locale that is supported by both Glibc and packages outside LFS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootscripts/common/profile.xml

    rc135b4d r643f8be  
    9595<screen><computeroutput>ISO-8859-1</computeroutput></screen>
    9696
    97   <para>This results in a final locale setting of
    98   <quote>en_GB.ISO-8859-1</quote>.</para>
     97  <para>This results in a final locale setting of <quote>en_GB.ISO-8859-1</quote>.
     98  It is important that the locale found using the heuristic above is tested prior
     99  to it being added to the Bash startup files:</para>
     100
     101<screen><userinput>LC_ALL=[locale name] locale country
     102LC_ALL=[locale name] locale language
     103LC_ALL=[locale name] locale charmap
     104LC_ALL=[locale name] locale int_curr_symbol
     105LC_ALL=[locale name] locale int_prefix</userinput></screen>
     106
     107  <para>The above commands should print the country and language names, the
     108  character encoding used by the locale, the local currency and the prefix
     109  to dial before the telephone number in order to get into the country. If
     110  any of the commands above fail with a message similar to the one shown
     111  below, this means that your locale was either not installed in Chapter 6
     112  or is not supported by the default installation of Glibc.</para>
     113
     114<screen><computeroutput>locale: Cannot set LC_* to default locale: No such file or directory</computeroutput></screen>
     115
     116  <para>If this happens, you should either install the desired locale using
     117  the <command>localedef</command> command, or consider choosing a different
     118  locale. Further instructions assume that there are no such error messages
     119  from Glibc.</para>
     120
     121  <para>Some packages beyond LFS may also lack support for your chosen locale.
     122  One example is the X library (part of the X Window System), which outputs
     123  the following error message:</para>
     124
     125<screen><computeroutput>Warning: locale not supported by Xlib, locale set to C</computeroutput></screen>
     126
     127  <para>Sometimes it is possible to fix this by removing the charmap part of
     128  the locale specification, as long as that does not change the character map
     129  that Glibc associates with the locale (this can be checked by running the
     130  <command>locale charmap</command> command in both locales). For example,
     131  one would have to change &quot;de_DE.ISO-8859-15@euro&quot; to
     132  &quot;de_DE@euro&quot; in order to get this locale recognized by Xlib.</para>
     133
     134  <para>Other packages can also function incorrectly (but may not necessarily
     135  display any error messages) if the locale name does not meet their expectations.
     136  In those cases, investigating how other Linux distributions support your locale
     137  might provide some useful information.</para>
    99138
    100139  <para>Once the proper locale settings have been determined, create the
Note: See TracChangeset for help on using the changeset viewer.