Changeset f7cf1fb


Ignore:
Timestamp:
05/16/2018 08:54:19 PM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, cross-chap5, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
9901037e
Parents:
3cb1f96
Message:

Provide better i18n instructions to setting up /etc/fstab.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/fstab.xml

    r3cb1f96 rf7cf1fb  
    5757  fields in this file, see <command>man 5 fstab</command>.</para>
    5858
    59   <para>Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs,
    60   iso9660, udf) need the <quote>iocharset</quote> mount option in order for
    61   non-ASCII characters in file names to be interpreted properly. The value
    62   of this option should be the same as the character set of your locale,
    63   adjusted in such a way that the kernel understands it. This works if the
    64   relevant character set definition (found under File systems -&gt;
    65   Native Language Support) has been compiled into the kernel
    66   or built as a module. The <quote>codepage</quote> option is also needed for
    67   vfat and smbfs filesystems. It should be set to the codepage number used
    68   under MS-DOS in your country. E.g., in order to mount USB flash drives, a
    69   ru_RU.KOI8-R user would need the following in the options portion of its
    70   mount line in <filename>/etc/fstab</filename>:</para>
     59  <para>Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs,
     60  cifs, iso9660, udf) need a special option, utf8, in order for non-ASCII
     61  characters in file names to be interpreted properly. For non-UTF-8 locales,
     62  the value of <option>iocharset</option> should be set to be the same as the
     63  character set of the locale, adjusted in such a way that the kernel
     64  understands it.  This works if the relevant character set definition (found
     65  under File systems -&gt; Native Language Support when configuring the kernel)
     66  has been compiled into the kernel or built as a module. However, if the
     67  character set of the locale is UTF-8, the corresponding option
     68  <option>iocharset=utf8</option> would make the file system case sensitive. To
     69  fix this, use the special option <option>utf8</option> instead of
     70  <option>iocharset=utf8</option>, for UTF-8 locales. The
     71  <quote>codepage</quote> option is also needed for vfat and smbfs filesystems.
     72  It should be set to the codepage number used under MS-DOS in your country.
     73  For example, in order to mount USB flash drives, a ru_RU.KOI8-R user would
     74  need the following in the options portion of its mount line in
     75  <filename>/etc/fstab</filename>:</para>
    7176
    72 <screen><literal>noauto,user,quiet,showexec,iocharset=koi8r,codepage=866</literal></screen>
     77<screen><literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal></screen>
    7378
    7479  <para>The corresponding options fragment for ru_RU.UTF-8 users is:</para>
    7580
    76 <screen><literal>noauto,user,quiet,showexec,iocharset=utf8,codepage=866</literal></screen>
     81<screen><literal>noauto,user,quiet,showexec,codepage=866,utf8</literal></screen>
    7782
    78   <note>
     83  <para>Note that using <option>iocharset</option> is the default for
     84  <literal>iso8859-1</literal> (which keeps the file system case
     85  insensitive), and the <option>utf8</option> option tells
     86  the kernel to convert the file names using UTF-8 so they can be
     87  interpreted in the UTF-8 locale.</para>
     88
     89  <!--note>
    7990    <para>In the latter case, the kernel emits the following message:</para>
    8091
     
    8596    of the <quote>iocharset</quote> option result in wrong display of filenames in
    8697    UTF-8 locales.</para>
    87   </note>
     98  </note-->
    8899
    89100  <para>It is also possible to specify default codepage and iocharset values for
Note: See TracChangeset for help on using the changeset viewer.