Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.7.1
-
None
-
be99e778d361068e81936773def14c731553991f
Description
The documentation says "The "C" locale is identical in behavior to English/UnitedStates."
This is trivially shown to not be the case:
QLocale usLocale = QLocale(QLocale::English, QLocale::UnitedStates);
QLocale cLocale = QLocale::c();
QDate date(2010, 5, 9);
qDebug() << usLocale.toString(date) << cLocale.toString(date);
qDebug() << usLocale.toString(date, QLocale::ShortFormat) << cLocale.toString(date, QLocale::ShortFormat);
...
QDEBUG : TestInternationalization::testDates(date-01) "Sunday, May 9, 2010" "Sunday, 9 May 2010"
QDEBUG : TestInternationalization::testDates(date-01) "5/9/10" "9 May 2010"