|

楼主 |
发表于 2003-6-7 11:31:35
|
显示全部楼层
Sorry I misread your first post, I thought you mean ``there would be problem if you mount it as -o utf8'' instead of ``there would be problem unless you mount it as -o utf8''.
Thanks for your detailed explanation. I haven't thought of using UTF-8 as the I/O charset of NTFS partition, and it is definitely a good idea. However, this solution has its limitations.
As I understand it, you should specify your encoding when you want to display Chinese on the console. So I think you are using the UTF8 encoding. There are people that need GB encoding, for example, they may have Chinese text files in GB encoding, and they just want to cat or more it (I am not sure if grep works).
And FAT partitions need GB encoding anyway (since the filenames are stored in codepage 936 instead of Unicode), people may have both NTFS and FAT partitions, and would be reluctant to change locale (encoding) when they change directories.
Your UTF8 solution is a good idea and the Rigth Way to go, yet a working GB enviroment would be easier for the newbies and Windows immigrants. My point is, the CP936 encoding in kernel should work, it is just some code table errors that is causing the problem you mentioned. I am trying to fix this problem so that people can use either UTF8 or GB encoding as they wish.
So if you have time, would you mind give this patch a try? I am pretty sure after applying it, you can mount NTFS partitions with option iochatset=cp936 without any problem (of course you need to be in a GB encoding locale to see the characters), and all the three problems you mentioned should be solved as well. |
|