View Ticket
Not logged in
Ticket UUID: 10aee063c413c107e3164cd8d07fa7d9e8a807c2
Title: Fossil didn't support for UTF8 to storage filenames.
Status: Fixed Type: Code_Defect
Severity: Critical Priority:
Subsystem: Resolution: Fixed
Last Modified: 2012-11-30 16:38:27
Version Found In: all
Description & Comments:
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>