[Bug 288963] New: KLocale::readNumber always return 0 for input bigger than 4 digit
Reza
rshah0385 at kireihana.com
Wed Dec 14 11:57:01 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=288963
Summary: KLocale::readNumber always return 0 for input bigger
than 4 digit
Product: kde
Version: Git
Platform: Unlisted Binaries
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs at kde.org
ReportedBy: rshah0385 at kireihana.com
Version: Git (using Devel)
OS: Linux
I'm trying to look for the cause of calculator bug
(https://bugs.kde.org/show_bug.cgi?id=281484).
I found out this line KGlobal::locale()->readNumber(inputText);
always return 0 for the input above 4 digits.
My locale is US.
Below are result using 12345 as input:
- using readNumber it will return 0
- using QString::toDouble will return 12345
Reproducible: Always
Steps to Reproduce:
Open calculator plasmoid.
Try input 12345, it will displayed 0
Actual Results:
0 is displayed.
Expected Results:
It must display 12,345 (in US locale) in string representation or 12345 in
double (non 0 value)
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list