Parsing not handling things the way a "normal" calculator would

Bug #187014 reported by Mark Rogers
4
Affects Status Importance Assigned to Milestone
GCalctool
Fix Released
Medium
gcalctool (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gcalctool

In a "normal" calculator, a trailing decimal point would be acceptable (if pointless), eg:
 10. + 20 =
.. would give 30

In gcalctool this causes a "Malformed expression" error.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

$ dpkg -l gcalctool | cat
[...]
ii gcalctool 5.20.2-0ubuntu1 A GTK2 desktop calculator

ProblemType: Bug
Architecture: i386
Date: Tue Jan 29 11:45:30 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gcalctool
NonfreeKernelModules: vmnet vmmon nvidia
Package: gcalctool 5.20.2-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gcalctool
ProcCwd: /home/mark
ProcEnviron:
 PATH=/home/mark/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: gcalctool
Uname: Linux mark-desktop 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Mark Rogers (mark-web) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=513218

Changed in gcalctool:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in gcalctool:
status: Unknown → Confirmed
Changed in gcalctool:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

fixed upstream, thanks.

Changed in gcalctool:
status: Triaged → Fix Committed
Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

In the hardy current version (5.21.92) the fix is released.

Changed in gcalctool:
status: Fix Committed → Fix Released
Revision history for this message
Mark Rogers (mark-web) wrote :

As OP, and running hardy, can I just say thanks guys; this stuff is why Linux and OSS is the way to go.

All your efforts are really appreciated.

Changed in gcalctool:
importance: Unknown → Medium
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.