Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
5.7.1
-
None
-
Linux
Description
qDebug() << QLocale::system(); qDebug() << QLocale::system().decimalPoint(); qDebug() << QLocale(QLocale::German, QLocale::Germany); qDebug() << QLocale(QLocale::German, QLocale::Germany).decimalPoint(); qDebug() << QLocale(QLocale::system().name()); qDebug() << QLocale(QLocale::system().name()).decimalPoint();
prints
QLocale(German, Latin, Germany) '.' QLocale(German, Latin, Germany) ',' QLocale(German, Latin, Germany) ','
Comma is the correct decimal separator. This is a regression. It worked before but I am not sure in which version it was introduced (5.7 or earlier). This is the locale:
LANG=de_DE.utf8 LC_CTYPE="de_DE.utf8" LC_NUMERIC="de_DE.utf8" LC_TIME="de_DE.utf8" LC_COLLATE="de_DE.utf8" LC_MONETARY="de_DE.utf8" LC_MESSAGES="de_DE.utf8" LC_PAPER="de_DE.utf8" LC_NAME="de_DE.utf8" LC_ADDRESS="de_DE.utf8" LC_TELEPHONE="de_DE.utf8" LC_MEASUREMENT="de_DE.utf8" LC_IDENTIFICATION="de_DE.utf8" LC_ALL=
Attachments
Issue Links
- relates to
-
QTBUG-81054 Format percentages distinctly from currencies and ordinary numbers
- Open