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.
On LFS-8.2, I tried to mount a vfat FS with "iocharset=utf8". Then run:
# "囧" is just a example or non-ASCII character
touch "囧a" "囧A"
The result is two files named "囧A" and "囧a" in a FAT32 filesystem.
This is bad. With "utf8" option there is no problem.
c.f.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=38739380683795354b3f0f1a1e80614e311b8
617
I understand the issue, but your patch seems to be inconsistent with the
previous paragraph:
"Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs,
cifs, iso9660, udf) need the “iocharset” mount option in order for
non-ASCII characters in file names to be interpreted properly.
...
"
But then your change removes the iocharset option. Can you rework your
patch to make that section more consistent?
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page