gnucash stable: Bug 799439 - Duplicate information in description when importing...

John Ralls jralls at code.gnucash.org
Tue Dec 10 18:38:43 EST 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/6c216877 (commit)
	from  https://github.com/Gnucash/gnucash/commit/f0f875d5 (commit)



commit 6c2168772b2485c6cf15032db1e8f0ef34a1eff4
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Dec 10 15:30:03 2024 -0800

    Bug 799439 - Duplicate information in description when importing...
    
    CAMT.053.001.02 via aqbanking
    
    Deduplicate the description inputs when joining them by creating a
    variant of gnc_g_list_stringjoin named gnc_g_list_stringjoin_nodups
    that tests each string against the agregate string and adds it only if
    it's not already included. Note that while it uses g_utf8_normalize to
    ensure that non-ascii strings are consistently composed it has to do a
    bytewise comparison with strstr as glib doesn't provide a UTF-8
    equivalent. strnocasestr would work only with ASCII strings so it's
    not suitable.



Summary of changes:
 gnucash/import-export/aqb/gnc-ab-utils.c         |  2 +-
 libgnucash/core-utils/gnc-glib-utils.c           | 45 +++++++++++++++++++++---
 libgnucash/core-utils/gnc-glib-utils.h           | 13 +++++++
 libgnucash/core-utils/test/test-gnc-glib-utils.c | 19 ++++++++++
 4 files changed, 73 insertions(+), 6 deletions(-)



More information about the gnucash-patches mailing list