qt5base-lts/tests/auto/corelib/io
Friedemann Kleint c14c149b51 Fix QTemporaryDir to handle Unicode characters on Windows
For platforms not providing mkdtemp(), QTemporaryDir relied on an implementation
of q_mkdtemp() operating on char *, converting back and forth using
QFile::encodeName()/decodeName() when passing the name to QFileSystemEngine.
This caused failures on Windows (which uses "System"/Latin1 encoding)
for names containing characters outside the Latin1 space.

Reimplement q_mkdtemp() to operate on QString, which avoids the conversions
altogether and also enables the use of larger character spaces for the
pattern.

Add tests.

Task-number: QTBUG-54810
Change-Id: Ie4323ad73b5beb8a1b8ab81425f73d03c626d58a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-07-20 07:31:18 +00:00
..
largefile winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qabstractfileengine winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qbuffer Make warnings of QIODevice more verbose. 2015-05-23 08:59:20 +00:00
qdatastream QTime: restore Qt3 compatibility in the QDataStream operators 2016-07-02 08:13:44 +00:00
qdataurl Update copyright headers 2015-02-11 06:49:51 +00:00
qdebug QDebug: fix streaming of QChars 2016-06-08 18:29:38 +00:00
qdir Re-enable tst_QDir on Windows. 2016-06-08 19:04:36 +00:00
qdiriterator Revert "Insignifify qdiriterator test" 2016-06-08 19:05:38 +00:00
qfile Better error message when trying to load an invalid resource 2016-04-12 10:18:57 +00:00
qfileinfo Revert "Insignifify qfileinfo on Windows, like QDir". 2016-06-08 19:05:46 +00:00
qfileselector winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qfilesystementry Update copyright headers 2015-02-11 06:49:51 +00:00
qfilesystemwatcher tst_qfilesystemwatcher: Blacklist flaky tests on Windows. 2015-11-17 14:27:23 +00:00
qiodevice winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00
qipaddress Fix parsing of IPv4 addresses with certain symbols 2016-04-08 15:09:50 +00:00
qlockfile Fix crash when using QLockFile in a global destructor 2016-04-10 07:37:51 +00:00
qloggingcategory QLoggingCategory: fix default severity in Q_LOGGING_CATEGORY macro 2015-08-03 14:40:19 +00:00
qloggingregistry remove redundant OTHER_FILES assignments 2016-05-02 18:34:47 +00:00
qnodebug QDateTime: drop quotes in QDebug output 2015-02-21 16:58:39 +00:00
qprocess Remove QPROCESS_USE_SPAWN and all that it surrounds 2016-03-22 15:20:06 +00:00
qprocess-noapplication Update copyright headers 2015-02-11 06:49:51 +00:00
qprocessenvironment QProcessEnvironment: fix op== 2015-07-07 05:22:33 +00:00
qresourceengine fix distclean targets 2015-04-23 19:16:57 +00:00
qsavefile Tests: Always verify whether QTemporaryDir/File creation succeeded. 2015-09-28 15:05:43 +00:00
qsettings Extend blacklisting of tst_qsettings to OSX 10.11 2015-12-15 09:45:51 +00:00
qstandardpaths Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
qstorageinfo Print the QStorageInfo dump on test start 2016-05-14 01:21:27 +00:00
qtemporarydir Fix QTemporaryDir to handle Unicode characters on Windows 2016-07-20 07:31:18 +00:00
qtemporaryfile Fix QTemporaryDir to handle Unicode characters on Windows 2016-07-20 07:31:18 +00:00
qtextstream QTextStream test: Change current directory 2016-03-16 08:16:03 +00:00
qurl QUrl: Test that we do correctly accept valid schemes 2016-07-02 16:36:50 +00:00
qurlinternal Update copyright headers 2015-02-11 06:49:51 +00:00
qurlquery Add qHash(QUrlQuery) 2015-04-20 07:41:56 +00:00
qwinoverlappedionotifier Update copyright headers 2015-02-11 06:49:51 +00:00
io.pro winrt: msvc2015: refactor file handling 2016-01-21 05:53:17 +00:00