Details
Description
Similar to https://bugreports.qt.io/browse/QTBUG-4796, I noticed that QTemporaryDir doesn't work if the templateName contains unicode characters that are not in the locale.
Stepping through the code, it seems like QTemporaryDirPrivate::create attempts to convert the templateName using QFile::encodeName.
This is a problem since we create temporary directory in the user local app data directory on Windows. If the account has foreign characters and the locale is set to standard US English, QTemporaryDir will fail. Note standard QDir mkpath etc, actually works fine so not entirely sure why the QTemporaryDir does what it does in that manner.