gcalctool opatares just with integers when real number are changed

Bug #449914 reported by Gonzalo Testa on 2009-10-12
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Medium
Robert Ancell

Bug Description

Binary package hint: gcalctool

Description: Ubuntu karmic (development branch)
Release: 9.10

gcalctool:
  Instalados: 5.28.0-0ubuntu2
  Candidato: 5.28.0-0ubuntu2
  Tabla de versión:
 *** 5.28.0-0ubuntu2 0
        500 http://mirror.anl.gov karmic/main Packages
        100 /var/lib/dpkg/status

Bug Description:

When a real number is changed, gcalctool always take it like 0

1. Open gcalctool
2. Type 0.2
3. Press Backspace button to erase the number 2
4. Press 6 number button
5. Press Multiply button
6. Press 8 number button
7. Press = button
8. Observe result

gcalctool, always works with integers if the real number is changed, e.g.: also happens when someone writes 0.54 and then 4 is erased, if any operation is used then is used the integers instead of real ones.

It does not matter how long is the real number, if it's erased just one time, then the gcalctool does not use it.

ProblemType: Bug
Architecture: i386
Date: Mon Oct 12 18:47:14 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gcalctool
Package: gcalctool 5.28.0-0ubuntu2
ProcEnviron:
 LANGUAGE=es_AR.UTF-8
 PATH=(custom, user)
 LANG=es_AR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-13.44-generic
SourcePackage: gcalctool
Uname: Linux 2.6.31-13-generic i686

Gonzalo Testa (gonzalogtesta) wrote :
Robert Ancell (robert-ancell) wrote :

For step 8. I get "4.8" - the correct value. What do you get?

Changed in gcalctool (Ubuntu):
status: New → Incomplete
Robert Ancell (robert-ancell) wrote :

Confirmed it occurs when in the es_AR.UTF-8 locale:
LANG=es_AR.UTF-8 gcalctool

Changed in gcalctool (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Changed in gcalctool (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcalctool - 5.28.0-0ubuntu3

---------------
gcalctool (5.28.0-0ubuntu3) karmic; urgency=low

  * debian/patches/03_comma_radix.patch:
    - Handle comma as radix separator (bug occurs when deleting part of a
      number) (LP: #449914)
  * debian/patches/04_numeric_exponent.patch:
    - Fix bug where every second digit of an exponent is dropped

 -- Robert Ancell <email address hidden> Tue, 13 Oct 2009 11:47:17 +1100

Changed in gcalctool (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers