[Bug 26625] New: Wine or Wine documentation bug on short file names

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 1 11:08:29 CDT 2011


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 at winehq.org
        ReportedBy: spammis at 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 at localhost:/mnt/windows$ getfattr -h -n system.ntfs_dos_name Program\ Files
# file: Program Files
system.ntfs_dos_name="PROGRA~1"

user at localhost:/mnt/windows$ getfattr -h -n system.ntfs_dos_name Program\
Files\ \(x86\)
# file: Program Files (x86)
system.ntfs_dos_name="PROGRA~2"

user at 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

-- 
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