From a587dfff2cffad61c4fc1d5d0da673766043ff89 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Wed, 29 Mar 2023 19:52:47 -0700 Subject: [PATCH] Bug 798802 - Online Price quote - Stocks not working GNU 5.0 Windows Change the property-tree path delimiter for constructing paths from '.' that's commonly used in stock symbols, to '|' that isn't. --- libgnucash/app-utils/gnc-quotes.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 605b0f375f..69c6de5075 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -479,8 +479,9 @@ GncQuotesImpl::query_fq (const char* source, const StrVec& commodities) commodities.cend(), [source, &pt](auto sym) { - std::string key{source}; - key += "." + sym; + using Path = bpt::ptree::path_type; + Path key{source, '|'}; + key /= Path{sym, '|'}; pt.put(key, ""); }); std::ostringstream result;