Use toLocal8Bit/fromLocal8Bit for POSIX API

Review Request #124928 - Created Aug. 26, 2015 and submitted

Information
Dāvis Mosāns
akonadi
d823e3e...
Reviewers
akonadi

Use toLocal8Bit/fromLocal8Bit for POSIX API
When user have non-latin username it would create folder /tmp/akonadi-* with wrong encoding.
This fixes it by using fromLocal8Bit which will convert to QString from LANG encoding.

Compiles and correctly created folder /tmp/akonadi-D?vis.FurEKd/ for username D?vis (PS. that "?" is messed up by reviewboard)
Only it fails on listen(socketFile) because QLocalServer incorrectly uses toLatin1 for POSIX API.
I created a patch for it https://codereview.qt-project.org/#/c/124230/

Daniel Vrátil
Dāvis Mosāns
Daniel Vrátil
Dāvis Mosāns
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit b85e8cfff2fa4256d09314f95be798e6abbc930f by D?vis Mos?ns to branch master.
Loading...