From 99eaa81a280e195a465290d6b9098db13b22a102 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 1 Aug 2021 12:43:14 -0700 Subject: [PATCH] Fix parse of commodity namespace from scheme istream. Just ignore 2 instead of ignoring 1 twice. No ifdef required. --- libgnucash/app-utils/gnc-option-impl.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libgnucash/app-utils/gnc-option-impl.hpp b/libgnucash/app-utils/gnc-option-impl.hpp index d614b0dd20..ae386afe3d 100644 --- a/libgnucash/app-utils/gnc-option-impl.hpp +++ b/libgnucash/app-utils/gnc-option-impl.hpp @@ -414,14 +414,10 @@ gnc_option_from_scheme (std::istream& iss, OptType& opt) { iss.ignore(strlen(commodity_scm_intro) + 1, '"'); std::getline(iss, name_space, '"'); - // libc++ doesn't consume the end character, libstdc++ does -#ifdef _LIBCPP_VERSION - iss.ignore(1, '"'); -#endif } else name_space = GNC_COMMODITY_NS_CURRENCY; - iss.ignore(1, '"'); + iss.ignore(2, '"'); std::getline(iss, mnemonic, '"'); if (type == GncOptionUIType::COMMODITY)