[Bug 46487] File Chooser Dialog blocks slashes in file text field when they could mean subdirectories

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jan 20 12:15:34 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=46487

Olivier F. R. Dierick <o.dierick at piezo-forte.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |o.dierick at piezo-forte.be

--- Comment #2 from Olivier F. R. Dierick <o.dierick at piezo-forte.be> ---
In case anyone is wondering: The 'forward' slash character is hard-coded in
both Windows [1] and Linux kernel [2] to be a directory separator. There is no
mean to have 'forward' slashes in filename on those systems, even when
escaping.

Some Mac OS X apps allow 'forward' slashes in filenames for compatibility with
older Mac OS. Those apps use the colon character as directory separator at the
application level. However, both characters get swapped in the underlying unix
filesystem [3] [4] and since Wine access the filesystem through lower level
system calls, it sees the unix filename.

Just to say that there can't be any issue with filenames containing slashes as
there can't be such filenames on any of those OS.

[1]
https://stackoverflow.com/questions/10708334/how-can-i-create-files-on-windows-with-embedded-slashes-using-python

[2]
https://stackoverflow.com/questions/9847288/is-it-possible-to-use-in-a-filename

[3] https://discussions.apple.com/thread/677339

[4] https://discussions.apple.com/thread/3990689

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