GNOME Bugzilla – Bug 157277
hitting Clr with a parenthesis doesn't work
Last modified: 2004-12-22 21:47:04 UTC
go into scientific mode, hit ( then Clr, you'll end up with a character that says 00 7F, maybe it's different if you have a font that has that character. anyway, the screen doesn't get cleared.
Can you give a little more information please? What version of gcalctool are you using? Help->About from the menubar will give you the version number. What locale are you running in? I've just tried this with the latest gcalctool (in both arithmetic operator precedence mode and non-arithmetic operator precedence mode), and hitting Clr after entering a "(" clears the line correctly.
I'm running version 4.4.20. I'm assuming C locale. BTW, CE does it as well, except 00 0B.
Okay, I've recreated it with 4.4.19. Ugh! This problem doesn't seem to exist in the 5.5.X gcalctool series. I'll look at generating a fix for the GNOME 2.8.1 version.
The bug only happens with mouse input. Simple fix: Index: gcalctool/functions.c =================================================================== RCS file: /cvs/gnome/gcalctool/gcalctool/functions.c,v retrieving revision 1.41 diff -u -r1.41 functions.c --- gcalctool/functions.c 9 Jun 2004 18:19:48 -0000 1.41 +++ gcalctool/functions.c 4 Nov 2004 20:36:22 -0000 @@ -709,7 +709,7 @@ return; } } - paren_disp(v->current->func_char); + paren_disp(v->current->value[0]); } This isn't a problem if you enter the equivalent via the keyboard. It's also not a problem in the GNOME 2.9 gcalctool (v5.5.X). I've bumped the version number in configure.in to 4.4.21, but I'm not generating a new tarball just yet. I'll do it in time for the next GNOME 2.8.X release.