Fossil

View Ticket
Login
2011-05-27
13:08 Fixed ticket [49db5c3993]: windows-i18n: "fossil extras" does not see files with non-ascii chars in their name plus 1 other change artifact: b65772295b user: drh
12:56
Internationalize the opendir() function calls. Ticket [49db5c3993bef2]. check-in: e05fea3852 user: drh tags: trunk
11:33 New ticket [49db5c3993] windows-i18n: "fossil extras" does not see files with non-ascii chars in their name. artifact: 67e356f427 user: anonymous

Ticket Hash: 49db5c3993bef2e8e6d0c921e19f070e5ec4b90f
Title: windows-i18n: "fossil extras" does not see files with non-ascii chars in their name
Status: Fixed Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution: Fixed
Last Modified: 2011-05-27 13:08:25
14.85 years ago
Created: 2011-05-27 11:33:08
14.85 years ago
Version Found In: [474850cff5] 2011-05-23 15:11:12
Description:
On Windows 7, 64-bits.

After upgrading from fossil version [d8221b9863] 2011-05-12 14:56:52 UTC to [474850cff5] 2011-05-23 15:11:12, I noticed that a few files were reported as DELETED (using addremove), whereas they still existed on disk.

The problem is fairly easy to duplicate with a fresh repository, but querying extras in a directory containing one file with non-ascii char (², subscript two), and one file with no such character. The file with NO non-ascii char is listed, the other one isn't.

Steps to reproduce:

C:\data>dir
 Volume in drive C is OS
 Volume Serial Number is ADDE-9D00

Directory of C:\data

27-mei-2011 13:16 <DIR> . 27-mei-2011 13:16 <DIR> .. 10-dec-2009 12:02 1.615 ax²+bx+c=0.png 08-apr-2010 17:42 760 bbc-logo-in-qr-code.png 2 File(s) 2.375 bytes 2 Dir(s) 301.619.884.032 bytes free

C:\data>fossil init repo project-id: 99811bf16b717813968b01f962b55d18c86c2f52 server-id: bdccb49160204a9f8edd6ad3890d39801085e668 admin-user: MCo (initial password is "82150c")

C:\data>fossil open repo

C:\data>fossil extras bbc-logo-in-qr-code.png

C:\data>fossil addremove ADDED bbc-logo-in-qr-code.png added 1 files, deleted 0 files

What puzzles me somewhat, is that extras doesn't see the special filename, but once I've added the file manually, it doesn't get removed either:

C:\data>fossil add ax²+bx+c=0.png
ADDED  ax²+bx+c=0.png

C:\data>fossil commit -m "test" New_Version: 0b5214ea3fff07515e5a498d7521edb05582727a

C:\data>fossil addremove added 0 files, deleted 0 files