From 32ba5f5d60424e11453da6b01ffcb87323d91ac4 Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Tue, 29 Nov 2005 05:57:28 +0000 Subject: 2005-11-29 Simon Zheng * menus/gal-view-collection.c (load_single_dir) diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c index f894e8cb59..1ee4859ced 100644 --- a/widgets/menus/gal-view-collection.c +++ b/widgets/menus/gal-view-collection.c @@ -107,9 +107,11 @@ gal_view_generate_string (GalViewCollection *collection, ret_val = g_strdup(gal_view_get_title(view)); else ret_val = g_strdup_printf("%s_%d", gal_view_get_title(view), which); - for (pointer = ret_val; *pointer; pointer++) { - if (!isalnum((guint) *pointer)) { - *pointer = '_'; + for (pointer = ret_val; *pointer; pointer = g_utf8_next_char(pointer)) { + if (!g_unichar_isalnum(g_utf8_get_char(pointer))) { + char *ptr = pointer; + for (; ptr < g_utf8_next_char(pointer); *ptr = '_', ptr++) + ; } } return ret_val; -- cgit