# HG changeset patch # User bruclik # Date 1219927862 0 # Node ID 4303ee1e88ec1747a48d10e71b26855f590d5e6f # Parent 45ce6c1f331e234ccfc4fa85623e6b94ec41ba82 Removed converting fd->name to utf8 from file_data_set_collate_keys(), because fd->name is utf8. diff -r 45ce6c1f331e -r 4303ee1e88ec src/filedata.c --- a/src/filedata.c Thu Aug 28 10:50:02 2008 +0000 +++ b/src/filedata.c Thu Aug 28 12:51:02 2008 +0000 @@ -149,22 +149,20 @@ static void file_data_set_collate_keys(FileData *fd) { gchar *caseless_name; - gchar *name = path_to_utf8(fd->name); - - caseless_name = g_utf8_casefold(name, -1); + + caseless_name = g_utf8_casefold(fd->name, -1); g_free(fd->collate_key_name); g_free(fd->collate_key_name_nocase); #if GLIB_CHECK_VERSION(2, 8, 0) - fd->collate_key_name = g_utf8_collate_key_for_filename(name, -1); + fd->collate_key_name = g_utf8_collate_key_for_filename(fd->name, -1); fd->collate_key_name_nocase = g_utf8_collate_key_for_filename(caseless_name, -1); #else - fd->collate_key_name = g_utf8_collate_key(name, -1); + fd->collate_key_name = g_utf8_collate_key(fd->name, -1); fd->collate_key_name_nocase = g_utf8_collate_key(caseless_name, -1); #endif g_free(caseless_name); - g_free(name); } static void file_data_set_path(FileData *fd, const gchar *path)