Ignore:
Timestamp:
12/26/2005 07:46:12 PM (18 years ago)
Author:
Archaic <archaic@…>
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:
b82f0c0
Parents:
5536f74
Message:

Reverting UTF-8 changes until everything is in place.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/glibc.xml

    r5536f74 r94aa6621  
    4848of achieving a clean build.</para>
    4949
    50 <para>The glibc-libidn tarball adds support for internationalized
    51 domain names (IDN) to Glibc. Note that many programs that
    52 support IDN require the full libidn library from
    53 <ulink url="http://josefsson.org/libidn/releases/"/>, not this add-on.
    54 Unpack the tarball from within the Glibc source
    55 directory:</para>
    56 
    57 <screen><userinput>tar jxf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
    58 
    59 <para>In the vi_VN.TCVN locale, bash enters infinite loop at startup. It is
    60 unknown whether this is a bash bug or a glibc problem. Disable installation
    61 of this locale in order to avoid the problem:</para>
    62 
    63 <screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
    64 
    6550<para>The Glibc documentation recommends building Glibc outside of the source
    6651directory in a dedicated build directory:</para>
     
    7257
    7358<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
    74     --disable-profile --enable-add-ons=nptl,libidn \
     59    --disable-profile --enable-add-ons \
    7560    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
    7661
     
    144129
    145130<screen><userinput>make localedata/install-locales</userinput></screen>
    146 
    147 <note><para>It is possible to create and install additional locales such as
    148 ru_RU.CP1251 by means of the <command>localedef</command> command, as
    149 explained in the <filename>INSTALL</filename> file in the Glibc source.</para></note>
    150 <!-- The Live CD patches the localedata/SUPPORTED file instead of running localedef -->
    151131
    152132<para>To save time, an alternative to running the
     
    163143for the tests to run successfully:</para>
    164144
    165 <!-- FIXME: recheck that "make localedata/install_locales" actually does the same -->
    166145<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
    167146localedef -i de_DE -f ISO-8859-1 de_DE
     
    174153localedef -i fr_FR -f ISO-8859-1 fr_FR
    175154localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
    176 localedef -i fr_FR.UTF-8 -f UTF-8 fr_FR
    177155localedef -i it_IT -f ISO-8859-1 it_IT
    178156localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
    179157
    180 <para>The first <command>localedef</command> above combines the
    181 <filename>/usr/share/i18n/locales/de_DE</filename> charset-independent
    182 locale definition with the
    183 <filename>/usr/share/i18n/charmaps/ISO-8859-1.gz</filename> charmap definition
    184 and appends the result to the
    185 <filename>/usr/lib/locale/locale-archive</filename> file.</para>
     158<para>Some locales installed by the <command>make
     159localedata/install-locales</command> command above are not properly
     160supported by some applications that are in the LFS and BLFS books.
     161Because of the various problems that arise due to application
     162programmers making assumptions that break in such locales, LFS should
     163not be used in locales that utilize multibyte character sets
     164(including UTF-8) or right-to-left writing order.  Numerous unofficial
     165and unstable patches are required to fix these problems, and it has
     166been decided by the LFS developers not to support such complex locales at this
     167time.  This applies to the ja_JP and fa_IR locales as well&mdash;they have been
     168installed only for GCC and Gettext tests to pass, and the
     169<command>watch</command> program (part of the Procps package) does not work
     170properly in them. Various attempts to circumvent these restrictions are
     171documented in internationalization-related hints.</para>
     172
    186173</sect2>
    187174
Note: See TracChangeset for help on using the changeset viewer.