[Kmymoney-devel] [Bug 291730] New: Entering number prefixed with zero is interpreted as octal
David Chamberlain
dc46and2 at gmail.com
Tue Jan 17 03:28:08 UTC 2012
https://bugs.kde.org/show_bug.cgi?id=291730
Summary: Entering number prefixed with zero is interpreted as
octal
Product: kmymoney4
Version: 4.6.1
Platform: Archlinux Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: general
AssignedTo: kmymoney-devel at kde.org
ReportedBy: dc46and2 at gmail.com
Version: 4.6.1 (using KDE 4.7.4)
OS: Linux
When creating a "Buy shares" transaction in an investment account, I happened
to enter "0200" in the shares box. (The zero was already there and the cursor
wound up to the right of it, so I just added "200" thinking it shouldn't
matter.) After I finished the transaction, the number of shares shown in the
ledger was 128 instead of 200. If you enter an invalid octal number prefixed
by zero (e.g. "09"), it will crash immediately.
Reproducible: Always
Steps to Reproduce:
Open investment account. Start new "Buy shares" transaction. In the "Shares"
box, enter "0200". (Don't enter an invalid octal number or it will crash!!)
Actual Results:
Number is interpreted as octal.
Expected Results:
Number should be interpreted as decimal. (And not crash if you enter "09"!)
OS: Linux (x86_64) release 3.1.9-2-ARCH
Compiler: gcc
--
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 KMyMoney-devel
mailing list