KLocale::formatNumber fails for locales without ThousandsSeparator

Albert Astals Cid aacid at kde.org
Thu Sep 8 16:22:04 BST 2011


Hi John, just realized that KLocale::formatNumber fails to return 10 when 
passing in "10" (returns 0) if ThousandsSeparator is empty (like it is for 
Spain and lots of other locales).

The problem is in KLocalePrivate::parseDigitGroup, but i gave a quick look and 
decided you could fix it faster than me since you already know what the code 
is supposed to be doin ;-)

Could have a look? If you are too busy say so and i'll try again since this is 
making Okular zoom input not work at all.

Albert




More information about the kde-core-devel mailing list