GNOME Bugzilla – Bug 730905
gcalccmd doesn't parse input correctly when it is formatted according to LC_NUMERIC
Last modified: 2014-06-08 19:44:53 UTC
It appears that gcalccmd uses the format set in $LC_NUMERIC for its output, but doesn't parse input correctly when it uses a decimal separator other than '.': $ echo $LC_NUMERIC de_DE.UTF-8 $ gcalccmd > 2,2 Error 1 > 2.2 22 > 22/10 2,2 > nst@beta:~$ LC_NUMERIC=en_US.UTF-8 gcalccmd > 2,2 22 > 2.2 2.2 > 22/10 2.2
Created attachment 277455 [details] [review] Handle localized radix characters on command line We were accounting for the locale's thousands separator, but not the radix char (decimal point). For example: export LC_NUMERIC=de_DE.UTF-8 gnome-calculator --solve 2.000,5 - ,2 The result should be 2.000,3 not an error.
Review of attachment 277455 [details] [review]: Works well. Committed. :) Thank you for the patch.
Thank you for the bug report. The issue have been fixed in current version, ane will be available with next release of Calculator. :)