GNOME Bugzilla – Bug 308408
Failed to convert hex data into other base
Last modified: 2005-08-18 20:37:10 UTC
Distribution: Debian testing/unstable Package: gcalctool Severity: major Version: GNOME2.10.1 5.6.x Gnome-Distributor: Debian Synopsis: Failed to convert hex data into other base Bugzilla-Product: gcalctool Bugzilla-Component: general Bugzilla-Version: 5.6.x Description: Description of Problem: Failed to convert hex data into other base Steps to reproduce the problem: 1. Choose scientific view 2. Choose Hex 3. Press 88 4. Choose Dec 5. Choose Hex 6. Press FF 7. Choose Dec Actual Results: 88FF Expected Results: 35071 How often does this happen? Every time. Additional Information: "No sane value to convert" appear on status line. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-06-20 16:26 UTC ------- The original reporter of this bug does not have an account here. Reassigning to the person who moved it here, unknown@bugzilla.gnome.org. Previous reporter was lilingv@gmail.com.
Only fails in "Use Arithmetic Operator Precedence" mode, so assigning to Sami for further evaluation.
Created attachment 48099 [details] Patch from Sami to fix the problem. One thing to note (for both arithmetic and non-arithmetic modes). When you've typed "88", clicked on Dec and then clicked back to Hex mode, and you then type in "FF", the "88" is removed first. In other words, to get the the decimal equivalent of "88FF", you would need to type in the whole number in one go.
Created attachment 48101 [details] Better fix. Forgot to include changes for hex. "A-C".
Changes checked into CVS HEAD. Version number in configure.in bumped to 5.6.18.
*** Bug 313878 has been marked as a duplicate of this bug. ***