mirror of
				https://github.com/Gnucash/gnucash.git
				synced 2025-02-25 18:55:30 -06:00 
			
		
		
		
	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:
		| @@ -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); | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user