tst_QLocale: Fix failing test on Norwegian Bokmål
It was failing because making it latin-1 turned it into: "Norwegian BokmÕl, Latin, Norway" While we expected: "Norwegian Bokm\xE5l, Latin, Norway" Amends e323d46cdaecffebb3f9fa55934e4eb4868611cf. Change-Id: I55fe21331d1cb3abd66780e103aee8b603509818 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit d359035c804021f59da70a75d962bfeafd320a71) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b6ab8c113d
commit
70f13cfbb1
@ -3155,7 +3155,7 @@ void tst_QLocale::debugOutput()
|
|||||||
const auto params = [](const QLocale &loc) {
|
const auto params = [](const QLocale &loc) {
|
||||||
return (QLocale::languageToString(loc.language())
|
return (QLocale::languageToString(loc.language())
|
||||||
+ u", " + QLocale::scriptToString(loc.script())
|
+ u", " + QLocale::scriptToString(loc.script())
|
||||||
+ u", " + QLocale::territoryToString(loc.territory())).toLatin1();
|
+ u", " + QLocale::territoryToString(loc.territory())).toUtf8();
|
||||||
};
|
};
|
||||||
const QLocale sys = QLocale::system();
|
const QLocale sys = QLocale::system();
|
||||||
QTest::ignoreMessage(QtMsgType::QtWarningMsg,
|
QTest::ignoreMessage(QtMsgType::QtWarningMsg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user