qt6-bb10/tests/auto/corelib/io/qdir
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
..
entrylist
resources/entryList
searchdir
testData
testdir Updated license headers 2016-01-21 18:55:18 +00:00
types
.gitignore
Info.plist Use a more robust test for absolute paths in QDir 2019-01-13 18:18:10 +00:00
android_testdata.qrc Android: Fix QDir tests 2014-12-22 09:26:49 +01:00
qdir.pro Use a more robust test for absolute paths in QDir 2019-01-13 18:18:10 +00:00
qdir.qrc
tst_qdir.cpp QDir: strip Windows' long-path markers when converting from native 2019-07-17 20:07:15 +02:00