Calculator wont turn on "Thousands Separator".

Bug #44756 reported by Martin Sondergaard
94
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GCalctool
Fix Released
Critical
gcalctool (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Hardy
Fix Released
Undecided
Unassigned
Intrepid
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

The calculator, Gcalctool 5.6.31, has a minor bug.
The menu option "View, Show Thousands Separator", often doesn't work.

Its a bug in toggling this option on and off. As well as often failing to turn this mode on, it also can fail to turn this mode off. If I use the keyboard shortcut, ^K, this also fails to work.

No, on second thoughts, perhaps its not a bug, it just looks like one. It just doesn't behave the way I expected it to. I've had a further look at this, and now I'm not sure if its a bug, or just unexpected behaviour.

If I enter a number, then select the option to Show Thousands Seperator, it doesn't change how the existing number is displayed. So I thought that the "Show Thousands Separator" mode was not working.

But if I press the "=" key then it correctly shows commas in the number.

This may not count as a bug. But I had difficulty turning on this mode, because I saw that the existing number had not changed, (commas were not added to it), so I thought it was not working.

I realise that when the user enters a number, the program can't add commas yet, because it doesn't know the user had finished entering the number until he presses "=" or some other operator key.

But when I selected the option to "Show Thousands Separator", I expected the number currently being displayed by the calculator to change, at once. Perhaps it should be changed to do so.

Your comments are welcome on this. Should the calculator have this small change made to it?

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. It's known upstream: http://bugzilla.gnome.org/show_bug.cgi?id=300363

Changed in gcalctool:
assignee: nobody → desktop-bugs
status: Unconfirmed → Confirmed
Áron Sisak (asisak)
Changed in gcalctool:
status: Confirmed → Triaged
Revision history for this message
altu (iulianv) wrote :

Yes it should. If the number one enters has more than three digits it should definitely start showing the thousands separator. Bug or no bug this is how it should work.

Revision history for this message
Raul Ortega (darth-debian) wrote :

Ok, this is a old problem and I can survive without this :-P

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

updated gnome-bug, as the original one was marked a duplicate.

Changed in gcalctool:
status: Unknown → Confirmed
Changed in gcalctool:
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in gcalctool:
status: New → Fix Committed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

This is working fine now, I've tested the test cases on bug 189101, 196735, 198381 and 224434 all of them work as expected now, bug is fixed, thanks.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates and intrepid.

Changed in gcalctool:
status: Triaged → Fix Released
status: Fix Committed → Fix Released
Revision history for this message
Cesar Arguinzones (ceap80) wrote :

o this bug is already fixed, i mean, I'm using Ubuntu 8.10 and gcalctool 5.24.1 and cannot made the thousands separator work by any mean. It doesn't show Thousands Separator even after pressing "=" key. Just in case:

cesar@cesar-desktop:~$ locale
LANG=es_VE.UTF-8
LC_CTYPE="es_VE.UTF-8"
LC_NUMERIC="es_VE.UTF-8"
LC_TIME="es_VE.UTF-8"
LC_COLLATE="es_VE.UTF-8"
LC_MONETARY="es_VE.UTF-8"
LC_MESSAGES="es_VE.UTF-8"
LC_PAPER="es_VE.UTF-8"
LC_NAME="es_VE.UTF-8"
LC_ADDRESS="es_VE.UTF-8"
LC_TELEPHONE="es_VE.UTF-8"
LC_MEASUREMENT="es_VE.UTF-8"
LC_IDENTIFICATION="es_VE.UTF-8"
LC_ALL=

Revision history for this message
Cesar Arguinzones (ceap80) wrote :

Well now I don't know who gets the blame...

If i do export LANG=es_AR.UTF-8 and start an instance of gcalctool from terminal It DOES show the Thousands Separator, I guess there's a problem with Venezuelan locale because i have another unrelated firefox bug (https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/242926) that is tied to my locale.

So the obligatory question. Should I open a new bug and if that is true, what package should I file the bug to?

Revision history for this message
dirk (dirk-kuijsten) wrote :

I'm using Ubuntu 8.10 / gcalctool 5.24.1 as well and it doesn't work. It is very irritating when working with larger numbers. And Kcalc is fine but consumes much memory with all KDE's libraries it is using.
Judging from the number of times the thousands separator issue comes up in /usr/share/doc/gcalctool/NEWS.gz, I believe the code could use some work.

Locale:
LANG=en_US.UTF-8
LC_CTYPE=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

Changed in gcalctool:
importance: Unknown → Critical
Revision history for this message
Donato Roque (donato-roque) wrote :

I am using 10.10 now and the thousand separator does not work. I can remember when it was working though and frankly surprised that there is a problem now.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Donato, thanks for your comment, for reference this is tracked in bug 631665

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.