Bug 410346 - Can't paste HEX strings starting with 0
Summary: Can't paste HEX strings starting with 0
Status: RESOLVED DUPLICATE of bug 375681
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 18.12
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-29 09:47 UTC by Alexander Trufanov
Modified: 2019-07-29 13:10 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 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 ***