GNOME Bugzilla – Bug 710824
GnuCash should sanitise UTF-8 before serialising files to avoid writing broken unparseable XML
Last modified: 2018-06-29 23:20:25 UTC
There are at least two known occasions of broken unicode strings getting into internal data structures. One happened with specific semicolon-separated CSV files in 2.4.12 (but no longer reproducible on 2.4.13). Another is bug 710823 where GnuCash receives a broken string from libofx. When this happens, and a user saves his or her gnucash file, it looks like everything is going fine until later he/she doesn't try to load it again only to see an uninformative message and Guile traceback. I agree GnuCash should properly sanitise its input but I also believe it's necessary to ensure the saved file would be valid XML and loadable even in the presence of some other obscure bugs that are quite possible when you have to communicate to the cruel cold world outside.
This problem has been fixed in the development version (r23598). The fix will be available in the next major software release. Thank you for your bug report.
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=710824. Please update any external references or bookmarks.