Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
4.7.0
-
None
Description
Commit f7c9db16be26c0c273ae141a88da80fae44c2304 updated the Qt locale database to CLDR 1.8.0.
However, a few locales possess codes that are not handled by Qt.
For example:
qDebug() << QLocale::system().dateFormat(QLocale::LongFormat) << QLocale::system().timeFormat(QLocale::LongFormat);
With 4.6, that produces the output for the Norwegian locale:
"dddd d. MMMM yyyy" "'kl'. HH.mm.ss "
Whereas 4.7 produces:
"dddd d. MMMM y" "'kl'. HH:mm:ss tttt"
Which means that a date/time formatting ends up
"fredag 9. april y" "kl. 15:27:00 CESTCESTCESTCEST"
QLocale either needs to be updated to support these new formats, or the update to CLDR needs to be reverted.
Attachments
Issue Links
- is replaced by
-
QTBUG-9500 QLocale::dateFormat(LongForma) output changed.
- Closed