Bug 134938 - kicker applet 'arythmetic evaluator' has problem with national decimal symbol
Summary: kicker applet 'arythmetic evaluator' has problem with national decimal symbol
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kicker
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-01 06:51 UTC by p92
Modified: 2009-05-23 04:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p92 2006-10-01 06:51:48 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Ubuntu Packages
OS:                Linux

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.
Comment 1 Marc Collin 2006-10-02 01:37:31 UTC
i'm in french language too and i get:

LANG=fr_FR.UTF-8
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=

if you check LANG=fr_FR.UTF-8 , you seem to have many language...

7*45.7  ENTER ==> 319.9
7*45,7  ENTER ==> syntax error
319.9*2 ENTER ==> 639.8

strange thing..... when i get an syntax error, i'm not able to use another time arythmetic evaluator 
Comment 2 p92 2007-02-10 22:17:15 UTC
stil the same error with : 
ii  kdeaddons           3.5.6-0ubuntu1~edgy
Comment 3 A. Spehr 2009-05-23 04:41:35 UTC
Kicker is currently unmaintained, you can look to your distribution for help, however.