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. Pick-to: 6.9 Change-Id: I55fe21331d1cb3abd66780e103aee8b603509818 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b0895d1bd7
commit
d359035c80
@ -3425,7 +3425,7 @@ void tst_QLocale::debugOutput()
|
||||
const auto params = [](const QLocale &loc) {
|
||||
return (QLocale::languageToString(loc.language())
|
||||
+ u", " + QLocale::scriptToString(loc.script())
|
||||
+ u", " + QLocale::territoryToString(loc.territory())).toLatin1();
|
||||
+ u", " + QLocale::territoryToString(loc.territory())).toUtf8();
|
||||
};
|
||||
const QLocale sys = QLocale::system();
|
||||
QTest::ignoreMessage(QtMsgType::QtWarningMsg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user