https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269527
Bug ID: 269527
Summary: msdosfs FAT filesystem require CAPITAL name
Product: Base System
Version: 13.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
when freebsd writes a file on msdosfs by "not capital ascii name" with iconv.
iconv can convert 2byte file name to ascii name.
sys/fs/msdosfs/msdosfs_conv.c
unix2dosfn call unix2doschr
unix2doschr call msdosfs_iconv->convchr
iconv->convchr convert "filename"
but FAT filesystem require CAPITAL file name
iconv did't change this pattern.
so real DOS cannot get file name correctlly.
I did that
mount_msdosfs -L UTF-8 -D CP932 /dev/da0s1 /mnt
cp 33c93.sys /mnt
I couldn't read this "33c93.sys" file with real MS-DOS for this reason.
this is patch.
sys/fs/msdosfs/msdosfs_conv.c
399d398
< if(c < 0x7b && c > 0x60) c = c -
0x20;//capitalize
439d437
< if(c < 0x7b && c > 0x60) c = c - 0x20;//capitalize
thanks.
--
You are receiving this mail because:
You are the assignee for the bug.