There was a problem while pasting from clipboard. The pasted data must be filtered at least to avoid incorrect input.

Bug #193274 reported by Hispid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gcalctool

The input from the keyboard is filtered to avoid wrong syntax or number format.
But, we can paste anything there from the clipboard. So, I've got "11101 1101" in my
clipboard. I would like to convert the value from binary to decimal. And I've got a wrong
number format error. Then, I tried to paste some text there and it was successful.

I think some filtering must occur on the pasted data to avoid these problems.

ProblemType: Bug
Architecture: i386
Date: Tue Feb 19 16:27:18 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gcalctool
NonfreeKernelModules: vmnet vmmon
Package: gcalctool 5.20.2-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gcalctool
ProcCwd: /home/hispid
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: gcalctool
Uname: Linux dmitry 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Hispid (codemaster2000) wrote :
Revision history for this message
TerryG (tgalati4) wrote :

Marking as invalid. Can only paste one value at a time in gcalctool. 11101 yields 29, 1101 yields 13. "11101 1101" yields "No sane value to convert." Am I missing something? Filtering does need to occur on pasted data. The user needs to filter the data such that only one sane value gets pasted at a time in gcalctool. Spaces are treated as delimiters so that "11101 1101" is really two values. Should automatic concatenation of spaces be used in gcalctool? Not sure.

Changed in gcalctool:
status: New → Invalid
Revision history for this message
Sönke Müller-Lund (soenke-mueller-lund) wrote :

This bug affects signed numbers too. If you got a negative result by the calculator it will not use the common minus sign but a different similar looking character. If you paste such results into a programming source errors are hard to find.

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.