KLocale::formatNumber fails for locales without ThousandsSeparator

John Layt john at layt.net
Thu Sep 8 18:04:31 BST 2011


On Thursday 08 Sep 2011 16:22:04 Albert Astals Cid wrote:
> 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

You're in luck, not only do I have net access today, I'll even be at home 
tonight so can I have a look at it :-)

John.




More information about the kde-core-devel mailing list