kicker applet 'arythmetic evaluator' has problem with national decimal symbol

Bug #38994 reported by P
10
Affects Status Importance Assigned to Milestone
KDE-Add-Ons
Unknown
Medium
kdeaddons (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

This was working right under kde 3.5.1. In kde 3.5.2 dapper ii kicker-applets 3.5.2-0ubuntu1

I have a problem when using the applet that does arithmetic evaluation.

I am in french language :
$ locale
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:fr:en_GB:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

but entering number with french decimal point (.) triggers a syntax error in the applet. It works only when using the comma (,).

but the results are given with the right decimal points (.)

example :
7*45.7 ENTER ==> syntax error
7*45,7 ENTER ==> 319.9 (notice the . which is right)
319.9*2 ENTER ==> syntax error

I tried after verifying that KDE local are rightly set to french. But defaults for this local is ',' as decimal point.
Then I changed decimal point to '.' and restarted KDE.
Result is the same syntax error when using arythmetic expression using '.' as decimal symbol.

Revision history for this message
P (p92) wrote :

still true as of recent dapper 20060529

description: updated
Revision history for this message
P (p92) wrote :

still true on edgy beta1

Changed in kdeaddons:
status: Unknown → Unconfirmed
Revision history for this message
Rich Johnson (nixternal) wrote :

Is this still an issue? Have you tried any later versions?

Changed in kdeaddons:
status: Unconfirmed → Needs Info
Revision history for this message
P (p92) wrote :

still the same error with :

ii kdeaddons 3.5.6-0ubuntu1~edgy

Revision history for this message
magic- (olaf-ippisch) wrote :

I had the same problem and finally found out that it was a problem of different locale settings in kde and basic settings.
While I had changed the number format in KDE to use decimal points, the locale number format LC_NUMBER was still "de_DE.UTF-8. Adding the line

LC_NUMERIC="en_US.UTF-8"

to /etc/default/locale fixed the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kdeaddons (Ubuntu) because there has been no activity for 60 days.]

Changed in kdeaddons:
status: New → Invalid
Changed in kdeaddons:
status: Invalid → Unknown
Changed in kdeaddons:
importance: Unknown → Medium
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.