[Bug 26888] Wine limits file names to 255 bytes even on NTFS

wine-bugs at winehq.org wine-bugs at winehq.org
Sun May 1 13:55:59 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26888

--- Comment #9 from Jussi Judin <jjudin+wine at iki.fi> 2011-05-01 13:55:58 CDT ---
Created an attachment (id=34419)
 --> (http://bugs.winehq.org/attachment.cgi?id=34419)
Program to create chosen length file names with single 3-byte UTF-8 character

Here's a small program to test creation of file names with multibyte characters
in them. File names that have UTF-8 length over 255 won't work in Wine on NTFS
file system even though they will work in Windows (tested in Windows 2000), as
long as UTF-16 length is less than 256. File names that have their length in
shorter than 256 UTF-8 bytes will be created successfully.

Here's the program output on Windows 2000:

C:\>unicode-file-create 255
UTF-8 length: 765
UTF-16 length: 255
Great success
Closed: 1

C:\>unicode-file-create 256
UTF-8 length: 768
UTF-16 length: 256
Error: 123

C:\>unicode-file-create 257
UTF-8 length: 771
UTF-16 length: 257
Error: 3

And with Wine 1.3.18:

jussi at jussiblet:/tmp/ntfsfs-mnt$ wine unicode-file-create.exe 85
UTF-8 length: 255
UTF-16 length: 85
Great success
Closed: 1

jussi at jussiblet:/tmp/ntfsfs-mnt$ wine unicode-file-create.exe 86
UTF-8 length: 258
UTF-16 length: 86
Error: 2

jussi at jussiblet:/tmp/ntfsfs-mnt$ wine unicode-file-create.exe 87
UTF-8 length: 261
UTF-16 length: 87
Error: 2

And I did encounter this problem in real-world application usage that led me to
investigate that what did that file creation failure message in logs with error
code 2 meant. So this didn't come up just in some theoretical Wine's file
creation limit testing.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list