From fae5de80d36db1a2a4ef0ae93012cb34e38354d1 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 11 Dec 2022 19:54:35 -0800 Subject: [PATCH] Undo unintended change in Bug 798679 commit. --- libgnucash/app-utils/gnc-ui-util.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libgnucash/app-utils/gnc-ui-util.c b/libgnucash/app-utils/gnc-ui-util.c index 8b63c59817..c3a829582a 100644 --- a/libgnucash/app-utils/gnc-ui-util.c +++ b/libgnucash/app-utils/gnc-ui-util.c @@ -2681,7 +2681,6 @@ gnc_filter_text_for_currency_symbol (const gchar *incoming_text, const gchar *symbol) { gchar *ret_text = NULL; - gchar *normal_text, *normal_sym; gchar **split; if (!incoming_text) @@ -2690,15 +2689,8 @@ gnc_filter_text_for_currency_symbol (const gchar *incoming_text, if (!symbol) return g_strdup (incoming_text); - normal_sym = g_utf8_normalize (symbol, -1, G_NORMALIZE_ALL_COMPOSE); - normal_text = - g_utf8_normalize (incoming_text, -1, G_NORMALIZE_ALL_COMPOSE); - if (g_strrstr (normal_text, normal_sym) == NULL) - { - g_free(normal_sym); - g_free(normal_text); + if (g_strrstr (incoming_text, symbol) == NULL) return g_strdup (incoming_text); - } split = g_strsplit (incoming_text, symbol, -1);