It seems to be related to LANG settings when using qalculate-gtk.
To be more precise to LC_MESSAGES settings (locale)
- when LANG=fr_FR.utf8 (my default setting)
"300 kelvin à celsius" give 573,15 C (I can use "à" instead of "to"
with no impact on the bug)
- when LANG=C (doing "export LANG=C" in my bash terminal before running
qalculate-gtk)
"300 kelvin to celsius" give 26.85 C
In fact, just switching LC_MESSAGES back and forth is sufficient to
trigger the bug :
all LC_*=fr_FR.utf8 but LC_MESSAGES=C is ok
all LC_*=C but LC_MESSAGES=fr_FR.utf8 is buggy
Grégory
Le 29/07/2010 10:21, Vincent Legout a écrit :
Hello Gregory,
On Thu, Jul 29, 2010 at 12:39:38AM +0200, Gregory Mounie wrote :
"300 kelvin to celsius" give 573.15 C (obviously wrong)
"-300 kelvin to celsius" give -26.85 C (bad input but closer value.
sign error somewhere in the code ?)
note that qalc interface compute it correctly
300 kelvin to celsius
300 * kelvin = 26.85 oC
Sorry, I can't reproduce this. I tried on several machines and I always had the
correct result in both qalc and qalculate-gtk.
You reported another bug last year which I can't reproduce (#528491), but
someone else reported the same bug (#472560). I guess the bug is confirmed and
should be fixed but I don't know how. I'll report it upstream.
Vincent
--
gregory.mou...@imag.fr | http://liglab.imag.fr
LIG, Ensimag,ZIRST 51 Jean Kuntzmann| tel:(33) (0)4 76 61 20 53
38330 Montbonnot St Martin - France | fax:(33) (0)4 76 61 20 99
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org