Fossil SCM
Fossil didn't support for UTF8 to storage filenames.
10aee063c413c10…
· opened 13 years, 4 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Critical
- Resolution
- Fixed
- Subsystem
- —
- Created
- Nov. 18, 2012 6:41 p.m.
Add a file named with 中文.txt then fossil can not add it. under win32, GBK ANSI.
jan.nijtmans added on 2012-11-18 22:33:12 UTC: This worked in version 1.24, but now it is temporary disabled since [fca9c52637]. Hopefully a solution for [8ca2aae391] will be found soon, so this can be enabled again.
anonymous added on 2012-11-19 07:31:25 UTC: It's not because of UTF8, it's because of []
jan.nijtmans added on 2012-11-19 11:15:03 UTC: I don't believe it's because of []
The hex representation of those Chinese characters in UTF-8 is "e4 b8 ad e6 96 87", there's no [] in there.
Still it's important to know exactly what fossil version the 'bug' was encountered. Without that, we are only guessing.
anonymous added on 2012-11-19 12:04:28 UTC:
This bug is reported by me, and I know that it's because of '[' and ']'. D:\CI\tools>cd .. D:\CI>fossil open tools.db D:\CI>fossil add tools\中文.txt ADDED tools/中文.txt D:\CI>cd tools D:\CI\tools>copy 中文.txt 中文[1].txt 1 file(s) copied. D:\CI\tools>cd .. D:\CI>fossil add "tools\中文[1].txt" fossil: filename contains illegal characters: tools/中文[1].txt D:\CI>