gnucash stable: Bug 798885 - Accented character in folder name on Account Export (bis)

John Ralls jralls at code.gnucash.org
Mon May 8 16:38:00 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/d696f0cf (commit)
	from  https://github.com/Gnucash/gnucash/commit/73337cff (commit)



commit d696f0cfcb882f864ce8b3d72b164c345ceba7a1
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun May 7 15:19:27 2023 -0700

    Bug 798885 - Accented character in folder name on Account Export (bis)
    
    Pass a boost::filesystem's c_str() rv to the ofstream constructor to
    keep libstdc++ from transcoding it back to UTF8 and creating a broken
    name or failing to match the directory name. Implemented in
    gnc-filepath-utils to avoid spreading the boost::filesystem dependency
    throughout the code base.
    
    See https://github.com/boostorg/filesystem/issues/181 for why other
    approaches don't work.



Summary of changes:
 gnucash/gnucash-commands.cpp                          |  3 ++-
 .../import-export/csv-exp/csv-transactions-export.cpp |  5 ++---
 gnucash/import-export/csv-exp/csv-tree-export.cpp     |  3 ++-
 libgnucash/core-utils/gnc-filepath-utils.cpp          |  7 +++++++
 libgnucash/core-utils/gnc-filepath-utils.h            | 19 ++++++++++++++++++-
 5 files changed, 31 insertions(+), 6 deletions(-)



More information about the gnucash-patches mailing list