Incorrect output for binary values in gcalctool

Bug #1241872 reported by Geo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Confirmed
High
Unassigned

Bug Description

in "Programming" mode
set "Decimal" base
enter "1024*1024*4" then "Enter"
display shows "4194304"
change base to "Binary"
display shows "1×10²²"

Output is incorrect!
Correct output is "1×2²²"

Additional info:

$ lsb_release -rd
Description: Ubuntu 12.04.3 LTS
Release: 12.04

$ apt-cache policy gcalctool
gcalctool:
  Installed: 6.4.1.1-0ubuntu3
  Candidate: 6.4.1.1-0ubuntu3
  Version table:
 *** 6.4.1.1-0ubuntu3 0
        500 http://lv.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     6.4.1.1-0ubuntu2 0
        500 http://lv.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gcalctool 6.4.1.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-54.82-generic-pae 3.2.50
Uname: Linux 3.2.0-54-generic-pae i686
ApportVersion: 2.0.1-0ubuntu17.5
Architecture: i386
Date: Sat Oct 19 01:57:32 2013
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
MarkForUpload: True
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gcalctool
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Geo (geom) wrote :
Revision history for this message
Geo (geom) wrote :
Revision history for this message
Geo (geom) wrote :

I found this code with "FIXME" marked
see file serializer.vala in trunk, line 424

<code>
        string.append ("×10"); // FIXME: Use the current base
</code>

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

Still present in latest gcalctool (now called gnome-calculator) 3.10.0

Changed in gcalctool (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gcalctool (Ubuntu):
importance: Undecided → High
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.