diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-07-19 10:18:39 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-07-20 07:31:18 +0000 |
commit | c14c149b51a1c7bf01e4e039f6e8cf1819e37ca6 (patch) | |
tree | eefa8c93d9d50d5a02dfa71d26bf05ae4066be68 /src/testlib/qtestcase.cpp | |
parent | b2029e9ca6c1645e85cbada1b09ba63fd1ee31ed (diff) |
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>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
0 files changed, 0 insertions, 0 deletions