On 2018-05-15 10:56 -0500,Bruce Dubbs wrote:
> On 05/15/2018 02:49 AM, Xi Ruoyao wrote:
> > "iocharset=utf8" makes the filesystem case sensitive. We can replace it
> > with "utf8" option which tells the kernel to convert filename using
> > UTF-8.
> I understand the issue, but your patch seems to be inconsistent with the
> previous paragraph:
<snip>
> But then your change removes the iocharset option. Can you rework your
> patch to make that section more consistent?
Modified the previous paragraph to explain the issue.
--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University
From b92fbf0b9e4101141035c2a54adcff567a06195d Mon Sep 17 00:00:00 2001
From: Xi Ruoyao <[email protected]>
Date: Wed, 16 May 2018 12:52:51 +0800
Subject: [PATCH] Use "utf8" mount option for MS filesystem instead of
"iocharset=utf8"
"iocharset=utf8" makes the filesystem case sensitive. We should replace
it with "utf8" options which tells the kernel to convert filename with
UTF-8.
---
chapter08/fstab.xml | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml
index 91ad2dfe..e8696128 100644
--- a/chapter08/fstab.xml
+++ b/chapter08/fstab.xml
@@ -57,13 +57,17 @@ EOF</userinput></screen>
fields in this file, see <command>man 5 fstab</command>.</para>
<para>Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs,
- iso9660, udf) need the <quote>iocharset</quote> mount option in order for
- non-ASCII characters in file names to be interpreted properly. The value
- of this option should be the same as the character set of your locale,
- adjusted in such a way that the kernel understands it. This works if the
- relevant character set definition (found under File systems ->
- Native Language Support) has been compiled into the kernel
- or built as a module. The <quote>codepage</quote> option is also needed for
+ iso9660, udf) need special option in order for non-ASCII characters in
+ file names to be interpreted properly. For non-UTF-8 locales, the value
+ of <option>iocharset</option> should be set to the same as the character
+ set of the locale, adjusted in such a way that the kernel understands it.
+ This works if the relevant character set definition (found under File
+ systems -> Native Language Support) has been compiled into the kernel
+ or built as a module. However, if the character set of the locale is
+ UTF-8, the corresponding option <option>iocharset=utf8</option> would
+ make the file system case sensitive. To fix this, use special option
+ <option>utf8</option> instead of <option>iocharset=utf8</option>,
+ for UTF-8 locales. The <quote>codepage</quote> option is also needed for
vfat and smbfs filesystems. It should be set to the codepage number used
under MS-DOS in your country. E.g., in order to mount USB flash drives, a
ru_RU.KOI8-R user would need the following in the options portion of its
@@ -73,9 +77,15 @@ EOF</userinput></screen>
<para>The corresponding options fragment for ru_RU.UTF-8 users is:</para>
-<screen><literal>noauto,user,quiet,showexec,iocharset=utf8,codepage=866</literal></screen>
+<screen><literal>noauto,user,quiet,showexec,utf8,codepage=866</literal></screen>
- <note>
+ <para>Note that <option>iocharset</option> is defaulted to
+ <literal>iso8859-1</literal> (which keeps the file system to be case
+ insensitive) , and the <option>utf8</option> option tells
+ the kernel to convert the file names using UTF-8 so they can be
+ interpreted in UTF-8 locale.</para>
+
+ <!--note>
<para>In the latter case, the kernel emits the following message:</para>
<screen><computeroutput>FAT: utf8 is not a recommended IO charset for FAT filesystems,
@@ -84,7 +94,7 @@ EOF</userinput></screen>
<para>This negative recommendation should be ignored, since all other values
of the <quote>iocharset</quote> option result in wrong display of filenames in
UTF-8 locales.</para>
- </note>
+ </note-->
<para>It is also possible to specify default codepage and iocharset values for
some filesystems during kernel configuration. The relevant parameters
--
2.16.2
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page