Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.8.6, 5.3.1, 6.5.0 FF
-
None
-
Windows 8.1
Description
Qt does not respect underlying system's locale settings for digit/money grouping. This setting is present in "Clock, Language and Region" in Control Panel of Windows OS'es. SS is attached.
In windows you can access this value by LOCALE_SGROUPING using GetLocale* functions.
Also "struct lconv" provides "grouping" field for accessing this setting. (Probably for unix based systems)
Current Qt versions only fetch grouping separator field and assume that this setting is "3;0" (or "3\0") by default. I'm currently workaround this bug by calling QLocale::setNumberOptions(numberOptions() | QLocale::OmitGroupSeparator) if grouping setting is "0". But this is nowhere near perfect.
Attachments
Issue Links
- relates to
-
QTBUG-81054 Format percentages distinctly from currencies and ordinary numbers
- Open