Changeset fa21b3d for chapter08


Ignore:
Timestamp:
01/06/2006 01:59:08 AM (18 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
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:
abf1f62
Parents:
60e34b5
Message:

Initial support of UTF-8. Thanks Alexander Patrakov.

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

Location:
chapter08
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter08/fstab.xml

    r60e34b5 rfa21b3d  
    6666  <filename>/etc/sysconfig/modules</filename>.</para>
    6767
     68  <para>Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs,
     69  iso9660, udf) need the <quote>iocharset</quote> mount option in order for
     70  non-ASCII characters in file names to be interpreted properly. The value
     71  of this option should be the same as the character set of your locale,
     72  adjusted in such a way that the kernel understands it. This works if the
     73  relevant character set definition (found under File systems -&gt;
     74  Native Language Support) has been compiled into the kernel
     75  or built as a module. The <quote>codepage</quote> option is also needed for
     76  vfat and smbfs filesystems. It
     77  should be set to the codepage number used under MS-DOS in your country. E.g.,
     78  in order to mount USB flash drives, a ru_RU.KOI8-R user would need the
     79  following line in <filename>/etc/fstab</filename>:</para>
     80
     81<screen>/dev/sda1    /media/flash vfat noauto,user,quiet,showexec,iocharset=koi8r,codepage=866 0 0</screen>
     82
     83  <para>The corresponding line for ru_RU.UTF-8 users is:</para>
     84
     85<screen>/dev/sda1    /media/flash vfat noauto,user,quiet,showexec,iocharset=utf8,codepage=866 0 0</screen>
     86
     87  <note><para>In the latter case, the kernel emits the following message:</para>
     88
     89<screen><computeroutput>FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!</computeroutput></screen>
     90
     91  <para>This negative recommendation should be ignored, since all other values
     92  of the <quote>iocharset</quote> option result in wrong display of filenames in
     93  UTF-8 locales.</para></note>
     94
     95  <para>It is also possible to specify default codepage and iocharset values for
     96  some filesystems during kernel configuration. The relevant parameters
     97  are named
     98  <quote>Default NLS Option</quote> (CONFIG_NLS_DEFAULT),
     99  <quote>Default Remote NLS Option</quote> (CONFIG_SMB_NLS_DEFAULT),
     100  <quote>Default codepage for FAT</quote> (CONFIG_FAT_DEFAULT_CODEPAGE), and
     101  <quote>Default iocharset for FAT</quote> (CONFIG_FAT_DEFAULT_IOCHARSET).
     102  There is no way to specify these settings for the
     103  ntfs filesystem at kernel compilation time.</para>
     104  <!-- Personally, I find it more foolproof to always specify the iocharset and
     105  codepage in /etc/fstab for MS-based filesystems - Alexander E. Patrakov -->
     106
    68107</sect1>
  • chapter08/kernel.xml

    r60e34b5 rfa21b3d  
    4949    configures the kernel.</para>
    5050
     51    <para>By default, the Linux kernel generates wrong sequences of bytes when
     52    dead keys are used in UTF-8 keyboard mode. Also, one cannot copy and paste
     53    non-ASCII characters when UTF-8 mode is active. Fix these issues with the
     54    patch:</para>
     55
     56<screen><userinput>patch -Np1 -i ../&linux-utf8-patch;</userinput></screen>
     57
    5158    <para>Prepare for compilation by running the following command:</para>
    5259
     
    5865    un-tarring.</para>
    5966
    60     <para>If, in <xref linkend="ch-scripts-console" role=","/> it was decided to
    61     compile the keymap into the kernel, issue the command below:</para>
    62 
    63 <screen role="nodump"><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to  keymap]</replaceable> &gt; \
    64     drivers/char/defkeymap.c</userinput></screen>
    65 
    66     <para>For example, if using a Dutch keyboard, use
    67     <filename>/usr/share/kbd/keymaps/i386/qwerty/nl.map.gz</filename>.</para>
     67    <!-- Support for compiling a keymap into the kernel is deliberately removed -->
    6868
    6969    <para>Configure the kernel via a menu-driven interface. BLFS has some
Note: See TracChangeset for help on using the changeset viewer.