After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 124377 - rounding problems if decimal separator is a comma
rounding problems if decimal separator is a comma
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2003-10-11 14:32 UTC by Egmont Koblinger
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
Fix for problem. (1.49 KB, text/plain)
2003-10-13 15:28 UTC, Rich Burridge
Details

Description Egmont Koblinger 2003-10-11 14:32:49 UTC
LANG=en_US gcalctool -> everything is okay, e.g. 1.1+2.2=3.3
LANG=hu_HU gcalctool -> 1,1+2,2=3,2999999 (when I type 1,1 and press the
plus sign, it becomes 1,0999999)

This happens with gcalctool 4.3.15.  4.3.3 was okay.
Comment 1 Rich Burridge 2003-10-13 14:35:20 UTC
Problem replicated. Investigating...
Comment 2 Rich Burridge 2003-10-13 15:28:38 UTC
Created attachment 20675 [details]
Fix for problem.
Comment 3 Rich Burridge 2003-10-13 15:40:25 UTC
I believe I've found and fixed the problem.
The diff is attached below. I've also checked
the fix into CVS HEAD. Fixed in v4.3.16.

Egmont, if you get a chance today (13th Oct)
to try this out and confirm that this does
indeed fix the problem for you, then I will
generate a new tarball that can be used for
the GNOME 2.4.1 release that they are building
tonight.

If I don't hear from you today that it's fixed for you,
I will tell the release team to use gcalctool 
v4.3.3 (the previous tarball).

Thanks.
Comment 4 Egmont Koblinger 2003-10-13 15:51:45 UTC
The patch is OK for me. Thanks!
Comment 5 Rich Burridge 2003-10-13 18:56:28 UTC
Great, thanks. I've just gone ahead and released
gcalctool v4.3.16, so hopefully it'll get picked
up for GNOME 2.4.1.