gnucash unstable: Multiple changes pushed

John Ralls jralls at
Sun Apr 8 20:42:24 EDT 2018

Updated	 via (commit)
	 via (commit)
	from (commit)

commit 7a0f0d57c809a2177d015ad4a961e2b1d34dfee6
Author: John Ralls <jralls at>
Date:   Sun Apr 8 17:37:39 2018 -0700

    Bug 782144 - git-master - Save Corrupts Data File / Not Open Data File
    After much thrashing this turned out to be caused by a date string
    with a 3-digit year and that caused an unexpected boost::bad_cast
    exception from boost::posix_time::time_from_string().
    To prevent that and anything like it, pre-parse the string with
    regular expressions to classify them and split out the timezone
    if there is one. If neither (perhaps eventually none) of the
    regexes match throw std::invalid_argument. The C function will
    catch this and return 0.

commit 89a1cfd24af529c7ca885ec7e90d198908133cbf
Author: John Ralls <jralls at>
Date:   Sun Apr 8 14:11:28 2018 -0700

    Add note about ALLOW_OLD_GETTEXT.

Summary of changes:
 README.dependencies                |  5 ++++-
 libgnucash/engine/gnc-datetime.cpp | 34 +++++++++++++++++++++++-----------
 2 files changed, 27 insertions(+), 12 deletions(-)

More information about the gnucash-patches mailing list