http://bugs.winehq.org/show_bug.cgi?id=26625
Summary: Wine or Wine documentation bug on short file names Product: Wine Version: 1.3.16 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: spammis@spam.la
http://www.winehq.org/docs/winedev-guide/x2988#AEN3203 Scroll down a bit to the bullet list. It says:
The filesystem on which the inspected directory lies in a real Windows FS (like FAT, or FAT32, or NTFS) and the OS has support to access the short filename (for example, Linux does this on FAT, FAT32 or VFAT). In this case, Wine makes full use of this information and really mimics the Windows behavior: the short filename used for any file is the same than on Windows.
Wine does not detect real short names on NTFS partitions but Linux is able to access the real short names on NTFS partitions. Thus, there is either a bug in Wine or in the documentation quoted above.
An example (from my /mnt/windows directory, mounted as Z:\mnt\windows in Wine):
Z:\mnt\windows>dir /x 2010/10/13 3:09 <DIR> PROG~FBU Program Files 2011/03/14 3:15 <DIR> PROG~5P2 Program Files (x86)
But: user@localhost:/mnt/windows$ getfattr -h -n system.ntfs_dos_name Program\ Files # file: Program Files system.ntfs_dos_name="PROGRA~1"
user@localhost:/mnt/windows$ getfattr -h -n system.ntfs_dos_name Program\ Files\ (x86) # file: Program Files (x86) system.ntfs_dos_name="PROGRA~2"
user@localhost:/mnt/windows$
So Wine calls the said directories PROG~FBU and PROG~5P2 respectively, whereas Linux detects the names created by Windows 7 as PROGRA~1 and PROGRA~2.
---
In order to use the "getfattr" program under Ubuntu, you may have to run "sudo apt-get install attr" first. Documentation available here: http://b.andre.pagesperso-orange.fr/extend-attr.html