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 516002 - incorrect number presentation on gcalctool
incorrect number presentation on gcalctool
Status: RESOLVED DUPLICATE of bug 527669
Product: gnome-calculator
Classification: Core
Component: general
5.21.x
Other All
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-12 12:45 UTC by Pedro Villavicencio
Modified: 2008-04-12 08:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Pedro Villavicencio 2008-02-12 12:45:05 UTC
This report has been entered here:

https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/189101

"A number like 123456789 have to be presented as 123.456.789, but the program presents 123,456.789

It's a little thing but can create serious problems if that presentation of the number is pasted in an important document.

A number like 123456789.012 have to be presented as 123.456.789,012 or 123,456,789.012, but the program presents 123,456.789.012"

"HI. i'm using es_AR (i'm from argentina). In my case, if i've tried to print 900,000,000.5, setting the view to "Show Thousands Separator" gcalctool print: 900,000.000.5.
Other results are: 1,000 - 1,000.000 - 10,000.000.05 - 900,000.000.000.1"

"Good news. This is the right patch of this bug. I have tested it, and works!

This patch is applicable into gcalctool 5.20.1 & 5.20.2 because in both packages is the same error.

This is my first contribution as a developer in linux world so I am really exited."

The patch: http://launchpadlibrarian.net/11879588/gcalctool.patch

Thanks!,
Comment 1 Rich Burridge 2008-02-12 15:35:42 UTC
Thanks for the bug report (and patch).
As this is potentially a significant change (and we haven't
heard other similar reports in other locales that use '.' as
the thousands separator), then I think it needs to be investigated
at the start of the next GNOME release cycle, where it can hopefully
be given adequate testing and QA. Therefore we will consider 
integrating it some time after March this year.
Comment 2 micha 2008-02-26 17:40:32 UTC
I can confirm this bug. My gcalctool Version is 5.20.2 and my local setings are the following:

LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=de_DE.UTF-8
Comment 3 Kenneth Mokkelbost 2008-02-29 22:34:46 UTC
This bug is present in other locales too:

https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/196735
Comment 4 Robert Ancell 2008-04-12 08:06:43 UTC
I've merged all the thousands separator bugs into bug 527669 with a recent patch that appears to have fixed most of these problems. Thanks if you took the time to make a patch, I reviewed them but unfortunately none of them fixed all the problems simultaneously. Please test the patch and raise any issues in the new bug. Thank you.

*** This bug has been marked as a duplicate of 527669 ***