gnucash master: Prevent localizing the decimal point in gcc<5.

John Ralls jralls at code.gnucash.org
Mon Feb 20 19:55:47 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/75e6a41b (commit)
	from  https://github.com/Gnucash/gnucash/commit/cbe52dad (commit)



commit 75e6a41bd784856f822d622271d1dde7a3355986
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Feb 20 16:51:06 2017 -0800

    Prevent localizing the decimal point in gcc<5.
    
    Apparently gcc V4.8 provides a defective implementation of
    std::locale which first doesn't support std::numpunct and second
    throws the wrong exception type.
    
    Unfortunately boost::locale isn't a solution because it uses the
    gcc facets.
    
    So for now, we don't compile that bit if gcc is too old.



Summary of changes:
 src/libqof/qof/gnc-numeric.hpp            | 4 +++-
 src/libqof/qof/test/gtest-gnc-numeric.cpp | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)



More information about the gnucash-patches mailing list