http://bugs.winehq.org/show_bug.cgi?id=58615
Bug ID: 58615 Summary: winepath changes behaviour and strips ending path separator now Product: Wine Version: 10.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: osmanx@problemloesungsmaschine.de Distribution: ---
wine_get_unix_file_name() and wine_get_dos_file_name() have change behaviour starting with Wine 10.13. Previously, they returned a path ending in a path separator when the provided input path also ended in a path separator. Now, they always strip the trailing path separator. The changed behaviour can trivially be seen with winepath: Wine < 10.13: ``` Z:\home\manx>winepath -w /home/manx Z:\home\manx Z:\home\manx>winepath -w /home/manx/ Z:\home\manx\ Z:\home\manx>winepath -u Z:\home /home Z:\home\manx>winepath -u Z:\home\ /home/ ``` Wine 10.13: ``` Z:\home\manx>winepath -w /home/manx Z:\home\manx Z:\home\manx>winepath -w /home/manx/ Z:\home\manx Z:\home\manx>winepath -u Z:\home /home Z:\home\manx>winepath -u Z:\home\ /home ```
This bug affects OpenMPT, and we had to explicitly work-around the behaviour change (see https://github.com/OpenMPT/openmpt/commit/3c4d38aa63c9baade94b9afc846612fa40e9f8e8).
The previous behaviour was present at the very least down to Wine 1.8 as far as I can remember.
http://bugs.winehq.org/show_bug.cgi?id=58615
--- Comment #1 from Jörn Heusipp osmanx@problemloesungsmaschine.de --- winepath -w changed already in Wine 10.11/10.12.
The offending commits are very likely (not verified): * https://gitlab.winehq.org/wine/wine/-/commit/96cd811903e3d3f227c39e12235725b... * https://gitlab.winehq.org/wine/wine/-/commit/c8fdffbf7c58e8eb46815fc274ba6e3...
http://bugs.winehq.org/show_bug.cgi?id=58615
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Keywords| |download, regression, | |source