|
@@ -74,26 +74,36 @@ EOF</userinput></screen>
|
|
|
mount line in <filename>/etc/fstab</filename>:</para-->
|
|
|
<para>在挂载来源于 MS-DOS 或 Windows 的文件系统
|
|
|
(如 vfat、ntfs、smbfs、cifs、iso9660、udf)时,
|
|
|
- 需要指定 <quote>iocharset</quote> 挂载选项,
|
|
|
- 才能正常解析文件名中的非 ASCII 字符。该选项的值应该和您的 locale
|
|
|
+ 需要一个特殊的挂载选项 —— utf8,
|
|
|
+ 才能正常解析文件名中的非 ASCII 字符。对于非 UTF-8 locale,选项
|
|
|
+ <option>iocharset</option> 的值应该和您的 locale
|
|
|
字符集设定一致,但改写成内核可以识别的写法。
|
|
|
该选项能够正常工作的前提是,将相关的字符集定义(在内核配置选项的
|
|
|
File Systems -> Native Language Support 子菜单中)
|
|
|
- 编译到内核中,或构建为内核模块。另外,
|
|
|
- vfat 和 smbfs 文件系统还需要 <quote>codepage</quote> 选项,
|
|
|
+ 编译到内核中,或构建为内核模块。然而,如果使用了 UTF-8 locale,
|
|
|
+ 对应的 <option>iocharset=utf8</option> 会导致文件系统变得大小写敏感。
|
|
|
+ 为了避免这个问题,在使用 UTF-8 locale 时,
|
|
|
+ 需要用特殊选项 <option>utf8</option> 代替
|
|
|
+ <option>iocharset=utf8</option>。
|
|
|
+ 另外,vfat 和 smbfs 文件系统还需要 <quote>codepage</quote> 选项,
|
|
|
它应该被设定为您的语言在 MS-DOS 下的代码页编号。
|
|
|
例如,为了挂载一个 USB 闪存盘,一个 ru_RU.KOI8-R 用户应该在
|
|
|
<filename>/etc/fstab</filename> 中对应于闪存盘的行添加下列挂载选项:
|
|
|
</para>
|
|
|
|
|
|
-<screen><literal>noauto,user,quiet,showexec,iocharset=koi8r,codepage=866</literal></screen>
|
|
|
+<screen><literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal></screen>
|
|
|
|
|
|
<para>相应的,ru_RU.UTF-8 用户应该使用下列选项:</para>
|
|
|
|
|
|
-<screen><literal>noauto,user,quiet,showexec,iocharset=utf8,codepage=866</literal></screen>
|
|
|
+<screen><literal>noauto,user,quiet,showexec,codepage=866,utf8</literal></screen>
|
|
|
|
|
|
- <note>
|
|
|
- <para>在后一种情况下,内核将会输出下列信息:</para>
|
|
|
+ <para>注意此时使用的 <option>iocharset</option> 默认为
|
|
|
+ <literal>iso8859-1</literal> (这保证文件系统是大小写不敏感的),
|
|
|
+ 而 <option>utf8</option> 选项告诉内核使用 UTF-8 编码转换文件名,
|
|
|
+ 这样它们就能在 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,
|
|
|
filesystem will be case sensitive!</computeroutput></screen>
|
|
@@ -114,7 +124,7 @@ EOF</userinput></screen>
|
|
|
用户来说,应该使用的挂载选项是
|
|
|
<screen><literal>noauto,user,quiet,showexec,utf8,codepage=936</literal></screen>
|
|
|
</para>
|
|
|
- </note>
|
|
|
+ </note-->
|
|
|
|
|
|
<!--para>It is also possible to specify default codepage and iocharset values for
|
|
|
some filesystems during kernel configuration. The relevant parameters
|