Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.2.0 Beta1
-
None
-
Qt 5.2.0 Beta1, OS X 10.9
Description
bcp47Name() doesn't print the expected dash-separated string codes when the QLocale::Country is the "default" for a given language. Examples:
QLocale locale(QLocale::English, QLocale::UnitedStates);
qDebug() << locale.bcp47Name(); //prints "en"
QLocale locale(QLocale::English, QLocale::UnitedKingdom);
qDebug() << locale.bcp47Name(); //prints "en-GB"
The same happens for all other languages.