https://bugs.winehq.org/show_bug.cgi?id=51808
Bug ID: 51808 Summary: Wine fails to enter directories ending with a space Product: Wine Version: 6.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: aros@gmx.com Distribution: ---
Steps to reproduce:
$ mkdir "test " $ cd "test " $ touch test.txt $ wine notepad test.txt wine: could not open working directory L"Z:\tmp\test\", starting in the Windows directory.
Notepad will ERROR: "File 'test.txt' does not exist. Do you want to create a new file?"
I wonder if there are other corner cases Wine fails to work with.
https://bugs.winehq.org/show_bug.cgi?id=51808
Artem S. Tashkinov aros@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
https://bugs.winehq.org/show_bug.cgi?id=51808
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- The Windows file APIs don't support trailing spaces, so I'd say that's a WONTFIX. Somehow I doubt that this is a problem in real usage...
https://bugs.winehq.org/show_bug.cgi?id=51808
Artem S. Tashkinov aros@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #2 from Artem S. Tashkinov aros@gmx.com --- (In reply to Alexandre Julliard from comment #1)
The Windows file APIs don't support trailing spaces, so I'd say that's a WONTFIX. Somehow I doubt that this is a problem in real usage...
I've had to work with two zip files containing such folders today. BTW, it was Google Drive which generated them.
Anyways, not gonna argue.
https://bugs.winehq.org/show_bug.cgi?id=51808
--- Comment #3 from Artem S. Tashkinov aros@gmx.com --- It's funny Windows is OK with leading spaces but not with trailing spaces.
https://bugs.winehq.org/show_bug.cgi?id=51808
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Note that if you extract the zip on Windows the trailing spaces will be discarded. The same thing should happen with a Windows zip extractor on Wine.
https://bugs.winehq.org/show_bug.cgi?id=51808
--- Comment #5 from Artem S. Tashkinov aros@gmx.com --- (In reply to Alexandre Julliard from comment #4)
Note that if you extract the zip on Windows the trailing spaces will be discarded. The same thing should happen with a Windows zip extractor on Wine.
Understood, sorry for the noise. Perhaps you could mention it somewhere though people can always find this bug report.
https://bugs.winehq.org/show_bug.cgi?id=51808
Artem S. Tashkinov aros@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine fails to enter |The issue with trailing |directories ending with a |spaces (spaces at the end |space |of a filename)
https://bugs.winehq.org/show_bug.cgi?id=51808
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Status|RESOLVED |CLOSED
--- Comment #6 from André H. nerv@dawncrow.de --- closing invalid