Fossil

View Ticket
Login

View Ticket

2012-11-30
16:38 Fixed ticket [10aee063]: Fossil didn't support for UTF8 to storage filenames. plus 1 other change ... (artifact: 1c1436a1 user: drh)
15:52
Allow characters *[]? to appear in filenames. Tickets [46bf4baedce] and [d17d6e5b174bd6] and [10aee063c413c107] ... (check-in: 647bb7b7 user: drh tags: trunk)
2012-11-19
12:04 Ticket [10aee063] Fossil didn't support for UTF8 to storage filenames. status still Open with 1 other change ... (artifact: 65cdb078 user: anonymous)
11:15 Ticket [10aee063]: 1 change ... (artifact: d6bc5e4c user: jan.nijtmans)
07:31 Ticket [10aee063]: 2 changes ... (artifact: 211104da user: anonymous)
2012-11-18
22:33 Ticket [10aee063]: 3 changes ... (artifact: 00132fc6 user: jan.nijtmans)
18:41 New ticket [10aee063]. ... (artifact: 22838dcf user: anonymous)

Ticket Hash: 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:
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>