qt6-bb10/tests/auto/corelib/io/qtemporaryfile
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
..
resources Rename createLocalFile to createNativeFile & deprecate createLocalFile 2012-10-02 10:43:48 +02:00
.gitignore Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
android_testdata.qrc Android: Fix QTemporaryFile tests 2015-01-08 10:06:50 +01:00
qtemporaryfile.pro Android: Fix QTemporaryFile tests 2015-01-08 10:06:50 +01:00
qtemporaryfile.qrc Rename createLocalFile to createNativeFile & deprecate createLocalFile 2012-10-02 10:43:48 +02:00
tst_qtemporaryfile.cpp Fix QTemporaryDir to handle Unicode characters on Windows 2016-07-20 07:31:18 +00:00