tst_QFileInfo: don't trigger libstdc++ std::filesystem bug
libstdc++'s std::filesystem::path implementation incorrectly assumes that any 8-bit char input is UTF-8, when it patently isn't on Windows. Reported at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111244 Pick-to: 6.5 6.6 Fixes: QTBUG-116609 Change-Id: I2b24e1d3cad44897906efffd17803f2862935c9b Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
1bbd646e59
commit
2b06d41b46
@ -2324,7 +2324,10 @@ void tst_QFileInfo::stdfilesystem()
|
||||
COMPARE_CONSTRUCTION("/path/TO/file.txt");
|
||||
COMPARE_CONSTRUCTION("./path/TO/file.txt");
|
||||
COMPARE_CONSTRUCTION("../file.txt");
|
||||
#if !(defined(__GLIBCXX__) && defined(Q_OS_WIN32))
|
||||
// libstdc++ bug on Windows - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111244
|
||||
COMPARE_CONSTRUCTION("./filæ.txt");
|
||||
#endif
|
||||
|
||||
// Test unicode strings
|
||||
QCOMPARE(QFileInfo(fs::path(u"./filæ.txt")).absoluteFilePath(),
|
||||
|
Loading…
Reference in New Issue
Block a user