Commit 433a19b
Always use QString::fromLocal8Bit for strings from POSIX API
Qt uses LC_* for locale and if they're set they take
precedence over anything else, but sddm would set them to empty string
if they weren't set before and that would ruin Qt system's locale
causing use of wrong encoding.
For proper i18n support need to ensure that LANG is set (from
/etc/locale.conf) and then always use QString::fromLocal8Bit for all
strings from POSIX API.
I would recommend enabling QT_NO_CAST_FROM_ASCII and don't use
QString(char *) but for POSIX API use fromLocal8Bit and for other
APIs use respective encoding for them.1 parent 476fc8a commit 433a19b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments