Details
Description
When generating the embedded :/qt/etc/qt.conf resource, the prefixPath is encoded using the local 8-bit encoding via QString::toLocal8Bit():
However, the QSettings implementation in Qt6 assumes that the values are encoded as UTF-8.
Therefore, PYSIDE-972 is actually only fixed in PySide6 under Linux and macOS (where QString::toLocal8Bit() is equivalent to QString::toUtf8()), but the issue still persists on Windows. If the path contains a non-ASCII character, the paths returned by QLibraryInfo::path() end up mangled, which for example prevents discovery and loading of plugins.
Attachments
Issue Links
- relates to
-
PYSIDE-972 Problem using non-latin characters in path
- Closed
For Gerrit Dashboard: PYSIDE-2204 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
456168,4 | Fix encoding of prefix path in embedded :/qt/etc/qt.conf resource | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
456299,2 | Fix encoding of prefix path in embedded :/qt/etc/qt.conf resource | 6.4 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
456301,2 | Fix encoding of prefix path in embedded :/qt/etc/qt.conf resource | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |