Change normalize mode in a couple of places

To be consistent, change the normalize mode in gnc-account-sel and
gnc-account-edit to G_NORMALIZE_NFC which is used in other locations.
This commit is contained in:
Robert Fewell 2023-01-29 11:02:15 +00:00
parent 44f4b55927
commit 4741ee355b
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@ normalize_and_fold (char* utf8_string)
char *normalized, *folded;
g_return_val_if_fail (utf8_string && *utf8_string, NULL);
normalized = g_utf8_normalize (utf8_string, -1, G_NORMALIZE_ALL);
normalized = g_utf8_normalize (utf8_string, -1, G_NORMALIZE_NFC);
if (!normalized)
return NULL;
folded = g_utf8_casefold (normalized, -1);
@ -331,7 +331,7 @@ normalize_and_lower (char* utf8_string)
char *normalized, *lowered;
g_return_val_if_fail (utf8_string && *utf8_string, NULL);
normalized = g_utf8_normalize (utf8_string, -1, G_NORMALIZE_ALL);
normalized = g_utf8_normalize (utf8_string, -1, G_NORMALIZE_NFC);
if (!normalized)
return NULL;
lowered = g_utf8_strdown (normalized, -1);

View File

@ -303,7 +303,7 @@ add_item(gnc_commodity *commodity, GNCCurrencyEdit *gce)
model = gtk_combo_box_get_model(GTK_COMBO_BOX(gce));
string = gnc_commodity_get_printname(commodity);
normalized = g_utf8_normalize (string, -1, G_NORMALIZE_ALL);
normalized = g_utf8_normalize (string, -1, G_NORMALIZE_NFC);
normalized_folded = normalized ? g_utf8_casefold (normalized, -1) : NULL;
gtk_list_store_append(GTK_LIST_STORE(model), &iter);