[Bug 58435] New: winepath -w conversion outputs wrong filenames
http://bugs.winehq.org/show_bug.cgi?id=58435 Bug ID: 58435 Summary: winepath -w conversion outputs wrong filenames Product: Wine Version: 10.11 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs(a)winehq.org Reporter: madewokherd(a)gmail.com Distribution: --- Observed in the pipeline failure here: https://gitlab.winehq.org/mono/wine-mono/-/jobs/169670 The build script in Wine Mono uses winepath -w to get a windows path for one of its outputs. The command, though not logged, would have been: winepath -w /builds/mono/wine-mono/build/winemono-support.cab Based on debugging in other places, I think that outputs: Z:\builds\mono\wine-mono\build\winemono-supporpport.cab 96cd811903e3d3f227c39e12235725baf793f4b9 is the first bad commit commit 96cd811903e3d3f227c39e12235725baf793f4b9 Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jun 24 11:56:39 2025 +0200 kernel32: Reimplement conversion to DOS name using GetFinalPathNameByHandleW. dlls/kernel32/path.c | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) The pattern seems to be that it fails when given an absolute path to a file that does not exist. The directory that would contain the file must exist or it won't output anything. The result seems to always be <path with last 5 characters cut off> + <last 9 characters of path>. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Esme Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |96cd811903e3d3f227c39e12235 | |725baf793f4b9 CC| |madewokherd(a)gmail.com Keywords| |regression, source -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 --- Comment #1 from Esme Povirk <madewokherd(a)gmail.com> --- https://gitlab.winehq.org/wine/wine/-/merge_requests/8455 looks related. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Esme Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |aae0f624d48d1e4f79e6947798e | |61b4d1006bf76 --- Comment #2 from Esme Povirk <madewokherd(a)gmail.com> --- Fixed by the MR above, thanks Huw. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dddg4447(a)gmail.com --- Comment #3 from Alexandre Julliard <julliard(a)winehq.org> --- *** Bug 58444 has been marked as a duplicate of this bug. *** -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Jörn Heusipp <osmanx(a)problemloesungsmaschine.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |osmanx(a)problemloesungsmasch | |ine.de --- Comment #4 from Jörn Heusipp <osmanx(a)problemloesungsmaschine.de> --- Possibly related issue with the same root cause: <https://bugs.openmpt.org/view.php?id=1904>. I have not verified the fix, though. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Zeb Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nordwolf92(a)gmail.com --- Comment #5 from Zeb Figura <z.figura12(a)gmail.com> --- *** Bug 58453 has been marked as a duplicate of this bug. *** -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pe.we.psi(a)gmail.com --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- *** Bug 58466 has been marked as a duplicate of this bug. *** -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mywine(a)schiermeier-it.de --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- *** Bug 58487 has been marked as a duplicate of this bug. *** -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58435 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.12. -- 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.
participants (1)
-
WineHQ Bugzilla