QLocale::name() should separate language from country with underscore, not dash

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-08-06 16:40:57 +00:00
parent d008a8e038
commit 68b8f2e29d

View file

@ -844,7 +844,7 @@ QString QLocale::name() const
const char *lang = languageTbl[dd->m_language].code;
if (dd->m_country != AnyCountry) {
const char *country = countryTbl[dd->m_country].code;
return QString::fromLatin1(lang) + QLatin1Char('-') + QString::fromLatin1(country);
return QString::fromLatin1(lang) + QLatin1Char('_') + QString::fromLatin1(country);
}
return QString::fromLatin1(lang);
}