Bug 8603 - kcal cannot use its constants when decimal separator is not a dot.
Summary: kcal cannot use its constants when decimal separator is not a dot.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 21:23 CET by Pierre Jarillon
Modified: 2013-01-27 19:33 CET (History)
4 users (show)

See Also:
Source RPM: kcalc
CVE:
Status comment:


Attachments

Description Pierre Jarillon 2013-01-05 21:23:58 CET
This looks like Bug 8243 : kcal cannot use decimal numbers
https://bugs.mageia.org/show_bug.cgi?id=8243

The constants cannot be displayed: nan (Not A Number).
With $ LC_ALL=C kcalc the constants are displayed
$  LC_NUMERIC=C kcalc works fine with constants.
kcalc cannot use its constants with LC_NUMERIC=fr_FR.UTF-8 IMO it is also true with german and Czech...
Manuel Hiebel 2013-01-05 21:25:50 CET

CC: (none) => lmenut
Source RPM: (none) => kcalc

Comment 1 John Balcaen 2013-01-05 22:47:16 CET
Can you check that you're using the dot as the decimal separator in System Settings/Locale/Country Region/Numbers ?

CC: (none) => balcaen.john

Comment 2 Pierre Jarillon 2013-01-06 02:41:15 CET
I use Mageia 3 beta 1 updated. In scientific mode, when I call any constant, such as Pi or Euler ou Planck constant, le value is "nan".
This is the same bug than Bug 8243 and kcalc has not been fully tested.
Comment 3 John Balcaen 2013-01-06 03:14:42 CET
Can you answer comment #1 ?
Comment 4 Pierre Jarillon 2013-01-06 10:10:39 CET
In KDE center, the country is France.
The separator for numbers is a ,  (copied & pasted) a comma.
Comment 5 John Balcaen 2013-01-06 15:00:13 CET
Switching it to a dot should fix your error.
Thierry Vignaud 2013-01-06 16:04:08 CET

CC: (none) => nicolas.lecureuil

Comment 6 Pierre Jarillon 2013-01-06 18:55:49 CET
This not *MY* error. This is a bug.
I use the default locales FR set up by Mageia.
Making an hybrid system to solve a bug of kcalc is not a solution.
Read carefully Bug 8243 please.
Comment 7 John Balcaen 2013-01-06 20:12:43 CET
By «your» error i did not mean to offense you at all, but to workaround the bug.
Since it's a kcal bug you can report it upstream.
Comment 8 Yuri Chornoivan 2013-01-08 09:50:07 CET
Possible upstream bug report:

https://bugs.kde.org/show_bug.cgi?id=312504

CC: (none) => yurchor

Comment 9 Pierre Jarillon 2013-01-08 22:18:37 CET
Also reported in https://bugs.kde.org/process_bug.cgi
Comment 10 Nicolas Lécureuil 2013-01-27 19:24:11 CET
comment #9: can you give the good link for the bugreport ?
Comment 11 Yuri Chornoivan 2013-01-27 19:33:27 CET
The bug is fixed in KDE 4.10 RC1 (tested self-compiled version, Ukrainian locale, comma decimal separator).

Both bug reports where Pierre added his comments closed as RESOLVED FIXED (and it is ;) ):

https://bugs.kde.org/show_bug.cgi?id=312504

https://bugs.kde.org/show_bug.cgi?id=200294

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.