GNOME Bugzilla – Bug 778983
Move number parsing to engine/qof
Last modified: 2018-06-29 23:54:45 UTC
The csv importer has code to convert strings into numbers (GncNumerics). This code is using xaccPrintAmount. However with c++/boost we have potentially much more powerful number parsers available. The idea is to leverage GncNumeric's tostring or input stream feature to do the heavy lifting. Perhaps a preparsing function needs to be added still. By moving this code into the engine/qof, other importers will be able to use it as well.
One of the limitations of current xaccPrintAmount is it fails to parse numbers with a trailing negative sign. Hopefully we can fix this by moving to c++/boost.
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=778983. Please continue processing the bug there and please update any external references or bookmarks.