Changeset c45b780


Ignore:
Timestamp:
11/12/2005 09:34:32 AM (18 years ago)
Author:
Matthew Burgess <matthew@…>
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.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:
82aac74
Parents:
4ebf97c
Message:

Improve the heuristic for selecting a supported/working locale

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r4ebf97c rc45b780  
    115115</listitem>
    116116
     117<listitem><para>November 12, 2005 [matt]: Improve the heuristic for determining
     118a locale that is supported by both Glibc and packages outside LFS (bug 1642).
     119Many thanks to Alexander Patrakov for highlighting the numerous issues and for
     120reviewing the various suggested fixes.</para></listitem>
     121
    117122<listitem><para>November 11, 2005 [matt]: Omit running Bzip2's testsuite as a
    118123separate step, as <command>make</command> runs it automatically (bug 1652).
  • chapter06/glibc.xml

    r4ebf97c rc45b780  
    137137
    138138<para>To save time, an alternative to running the
    139 previous command (which generates and installs every locale Glibc is
    140 aware of) is to install only those locales that are wanted and needed.
    141 This can be achieved by using the <command>localedef</command>
    142 command. Information on this command is located in the
    143 <filename>INSTALL</filename> file in the Glibc source.  However, there
     139previous command (which generates and installs every locale listed in the
     140glibc-&glibc-version;/localedata/SUPPORTED file) is to install only those
     141locales that are wanted and needed.  This can be achieved by using the
     142<command>localedef</command> command. Information on this command is located in
     143the <filename>INSTALL</filename> file in the Glibc source.  However, there
    144144are a number of locales that are essential in order for the tests of
    145145future packages to pass, in particular, the
     
    170170(including UTF-8) or right-to-left writing order.  Numerous unofficial
    171171and unstable patches are required to fix these problems, and it has
    172 been decided by the LFS developers not to support such complex locales.  This applies to the
    173 ja_JP and fa_IR locales as well&mdash;they have been installed only for
    174 GCC and Gettext tests to pass, and the <command>watch</command> program
    175 (part of the Procps package) does not work properly in them. Various
    176 attempts to circumvent these restrictions are documented in
    177 internationalization-related hints.</para>
     172been decided by the LFS developers not to support such complex locales at this
     173time.  This applies to the ja_JP and fa_IR locales as well&mdash;they have been
     174installed only for GCC and Gettext tests to pass, and the
     175<command>watch</command> program (part of the Procps package) does not work
     176properly in them. Various attempts to circumvent these restrictions are
     177documented in internationalization-related hints.</para>
    178178
    179179<para>Build the linuxthreads man pages, which are a great reference
  • chapter07/profile.xml

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

    r4ebf97c rc45b780  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-20051111">
    3 <!ENTITY releasedate "November 11, 2005">
     2<!ENTITY version "SVN-20051112">
     3<!ENTITY releasedate "November 12, 2005">
    44<!ENTITY milestone "6.2">
    55<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
Note: See TracChangeset for help on using the changeset viewer.