Bug 410346

Summary: Can't paste HEX strings starting with 0
Product: [Applications] kcalc Reporter: Alexander Trufanov <trufanovan>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 18.12   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Trufanov 2019-07-29 09:47:48 UTC
SUMMARY

I wonder, why I'm getting nan result while pasting "00AA" or "01AA" string to KCalc, while pasting "10AA" works fine?

STEPS TO REPRODUCE
1. Run KCalc and switch to Numerical System Mode
2. Copy string "01AA" to clipboard
3. Paste it to KCalc via Ctrl+V

OBSERVED RESULT

"nan" is displayed.
EXPECTED RESULT

"1AA" should be displayed

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 19.04
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.0-21-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-3520M CPU @ 2.90GHz
Memory: 7,7 GiB of RAM


ADDITIONAL INFORMATION
Comment 1 Christoph Feck 2019-07-29 13:10:57 UTC

*** This bug has been marked as a duplicate of bug 375681 ***