qt5base-lts/src
Volker Hilsheimer 3966b571ff QDir: strip Windows' long-path markers when converting from native
Applications might receive paths with Windows' '\\?\' markers, which
indicates a long path to Win32 APIs, when the application is opened by
explorer via file association. Qt not ignoring those markers will fail
to open such files.

By stripping the marker in QDir::fromNativeSeparators, QFile, QFileInfo
etc automatically are able to handle such paths. QDir::cleanPath is
also documented to normalize separators, so it needs to be done there
as well.

[ChangeLog][QtCore][QDir] Remove Windows specific long path markers
when handling file paths with native separators.

Change-Id: I526a890614edee8c85b39fc12c98e7ddb6e0d793
Fixes: QTBUG-75117
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-07-17 20:07:15 +02:00
..
3rdparty Merge remote-tracking branch 'origin/5.13' into dev 2019-07-01 10:21:37 +02:00
android Merge remote-tracking branch 'origin/5.13' into dev 2019-07-10 10:39:33 +02:00
angle Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-28 01:00:23 +02:00
concurrent Merge remote-tracking branch 'origin/5.13' into dev 2019-06-27 14:38:03 +02:00
corelib QDir: strip Windows' long-path markers when converting from native 2019-07-17 20:07:15 +02:00
dbus QDBusConnectionInterface: Add activatableServiceNames 2019-07-07 12:16:11 +02:00
gui Merge remote-tracking branch 'origin/5.13' into dev 2019-07-17 10:44:21 +02:00
network Merge "Merge remote-tracking branch 'origin/5.13' into dev" 2019-07-17 11:47:20 +02:00
opengl Port some trivial cases from QMutex to QRecursiveMutex 2019-07-06 11:22:37 +02:00
openglextensions Move forward-declaration inside of namespace 2019-05-15 10:58:49 +00:00
platformheaders Merge remote-tracking branch 'origin/5.13' into dev 2019-06-27 14:38:03 +02:00
platformsupport Merge remote-tracking branch 'origin/5.13' into dev 2019-07-17 10:44:21 +02:00
plugins QWasmEventTranslator: return Key_unknown, not 0x00, when a key isn't found 2019-07-17 17:21:57 +00:00
printsupport Merge remote-tracking branch 'origin/5.13' into dev 2019-06-27 14:38:03 +02:00
sql Fix build without feature.stringlistmodel 2019-06-30 17:16:52 +09:00
testlib QTestLib: Fix class declarations/structure 2019-07-11 14:42:04 +02:00
tools Qt6: Fix uninitialized meta objects on Windows 2019-07-16 18:34:41 -07:00
widgets Merge remote-tracking branch 'origin/5.13' into dev 2019-07-17 10:44:21 +02:00
winmain Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
xml Be less laissez-faire with implicit conversions to QChar 2019-07-09 07:09:44 +02:00
src.pro Merge remote-tracking branch 'origin/5.13' into dev 2019-07-17 10:44:21 +02:00