gcalctool can't handle commas when converting between bases

Bug #717470 reported by Mark Jackson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GCalctool
Fix Released
Medium
gcalctool (Ubuntu)
Fix Released
Low
Vibhav Pant

Bug Description

Binary package hint: gcalctool

(1) Enable "Show thousands separators"
(2) Select "Programming" mode
(3) Select "Decimal"
(4) Enter 1024
(5) Change the base to "Hexadecimal"
(6) Incorrect result ... we get 1024 interspersed with subscript "10"s

If you now disable "Show thousands separators" and repeat, we get the correct value displayed.

I think the commas must be confusing the string parser.

$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

$ apt-cache policy gcalctool
gcalctool:
  Installed: 5.32.0-0ubuntu4
  Candidate: 5.32.0-0ubuntu4
  Version table:
 *** 5.32.0-0ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ maverick-updates/main i386 Packages
        100 /var/lib/dpkg/status
     5.32.0-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        500 http://mirrors.kernel.org/ubuntu/ maverick/main i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gcalctool 5.32.0-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
CheckboxSubmission: a8a616df9dc786aebb6e90396a4327e4
CheckboxSystem: da9af3b901b5569a389df6337f3d812f
Date: Fri Feb 11 23:03:11 2011
ExecutablePath: /usr/bin/gcalctool
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_GB.utf8
SourcePackage: gcalctool

Revision history for this message
Mark Jackson (mpfj) wrote :
bbordwell (benbordwell)
Changed in gcalctool (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
bbordwell (benbordwell) wrote :

Mark, I would like to thank you for making this bug report so complete, if only every bug reported was like this :), knowing EXACTLY how to reproduce a bug makes it easy for us triaggers.

Changed in gcalctool:
importance: Unknown → Medium
status: Unknown → New
Changed in gcalctool:
status: New → Fix Released
Vibhav Pant (vibhavp)
Changed in gcalctool (Ubuntu):
assignee: nobody → Vibhav Pant (vibhavp)
Vibhav Pant (vibhavp)
Changed in gcalctool (Ubuntu):
status: Triaged → Fix Released
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.