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@kde.org ReportedBy: dc46a...@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. _______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel