http://bugs.winehq.org/show_bug.cgi?id=17758 Jeff Zaroyko <jeffz(a)jeffz.name> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffz(a)jeffz.name --- Comment #2 from Jeff Zaroyko <jeffz(a)jeffz.name> 2009-03-16 00:12:06 --- (In reply to comment #1)
As a quick test, install Python and run
$ wine 'c:\Python30\python' -c 'print(__import__("os").path.exists("/bin/sh"))'
It prints True on Wine if /bin is mapped and False on Windows.
This isn't a good way to what if the file c:\bin\sh exists on Windows? mkdir c:\bin echo > c:\bin\sh GetFileAttributesA("/bin/sh"); returns FILE_ATTRIBUTE_ARCHIVE (0x20) Unix style paths on Windows refer to the current drive. (In reply to comment #0)
GetFileAttributesExW("/bin/sh") succeeds if /bin is mapped. Some of python's tests use this check to decide whether it's running on a Unix system. It then tries to start a subprocess using /bin/sh and read its output; this does not work because Wine processes cannot read the output of non-Wine processes.
These tests are broken then. The only valid part of this bug report is that Z: is searched when a unix style path is used, but it shouldn't be unless it's the current drive. There's already another bug report open about this. -- 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.