After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120927 - Formula parser chokes on locale changes
Formula parser chokes on locale changes
Status: VERIFIED DUPLICATE of bug 121740
Product: GnuCash
Classification: Other
Component: Scheduled Transactions
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: Josh Sled
Josh Sled
Depends on:
Blocks:
 
 
Reported: 2003-08-28 17:54 UTC by Joachim Breitner
Modified: 2018-06-29 20:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joachim Breitner 2003-08-28 17:54:17 UTC
Quoting http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=188305

Package: gnucash
Version: 1.8.2-4

Parsing a credit formula that was generated while LANG=de_DE@euro 
may choke the parser when LANG=C. It can not cope with the
character ',' as decimal point in this case. It may seem strange to
switch locales at random, but I do not think it is improper: Imagine someone
using gnucash for various unrelated tasks, with some accounting sone in
English,
others in Spanish or German. Or multiple persons with different native
languages
working on the same set of accounts, who want the buttons labelled in their
language ...
I have no good suggestion as to how this problem should be resolved; maybe
one should have the locale that the data was entered in listed in the .xac
file to help the parser?

At least the following crash should not happen...

Transactions: Total: 10, Loaded: 13
Accounts: Total: 19, Loaded: 18
Books: Total: 1, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 2, Loaded: 2
Error: create_each_transaction_he...(): Error parsing credit formula "9,00"
at "9,00": Undefined character
Error: create_each_transaction_he...(): Some error in new transaction
creation...
Error: check_open: transaction 0x84e8540 not open for editing

Error: check_open:      Transaction.c:95 

Error: xaccTransCommitEdit: unbalanced call - resetting (was -1)

** ERROR **: file dialog-sxsincelast.c: line 1604 (sxsincelast_init):
assertion failed: (nextPage)
aborting...
Aborted

(Reported by Utz-Uwe Haus <haus@juist.math.uni-magdeburg.de>)

I checked this, problem still occurs, but no crash. You just can't close
the "Edit Scheduled Transaction" windows with "ok", just with "cancel".
Output on the console:
Error: gnc_sxed_check_consistent: Couldn't parse debit formula for "Test"
on second pass
Comment 1 Josh Sled 2004-02-27 01:47:52 UTC
There's two bugs in there; I'm going to call this one Bug#121740.

*** This bug has been marked as a duplicate of 121740 ***
Comment 2 John Ralls 2018-06-29 20:36:33 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=120927. Please update any external references or bookmarks.