Compose: Fix assert for non-UTF8 locales in table generator
Task-number: QTBUG-35770 Change-Id: I8aaea66e8d70edf7ab401f2c6dfb849d309ff6af Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
This commit is contained in:
parent
6adf515e33
commit
3f5060a601
@ -350,7 +350,7 @@ ushort TableGenerator::keysymToUtf8(quint32 sym)
|
||||
qDebug() << QString("keysym - 0x%1 : utf8 - %2").arg(QString::number(sym, 16))
|
||||
.arg(codec->toUnicode(chars));
|
||||
#endif
|
||||
return QString::fromLocal8Bit(chars).at(0).unicode();
|
||||
return QString::fromUtf8(chars).at(0).unicode();
|
||||
}
|
||||
|
||||
static inline int fromBase8(const char *s, const char *end)
|
||||
|
Loading…
Reference in New Issue
Block a user