[Kmymoney-devel] [Bug 291730] New: Entering number prefixed with zero is interpreted as octal
dc46and2 at gmail.com
Tue Jan 17 03:28:08 UTC 2012
Summary: Entering number prefixed with zero is interpreted as
Platform: Archlinux Packages
AssignedTo: kmymoney-devel at kde.org
ReportedBy: dc46and2 at gmail.com
Version: 4.6.1 (using KDE 4.7.4)
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.
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!!)
Number is interpreted as octal.
Number should be interpreted as decimal. (And not crash if you enter "09"!)
OS: Linux (x86_64) release 3.1.9-2-ARCH
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