changeset 1007:4303ee1e88ec

Removed converting fd->name to utf8 from file_data_set_collate_keys(), because fd->name is utf8.
author bruclik
date Thu, 28 Aug 2008 12:51:02 +0000
parents 45ce6c1f331e
children 68b0cb6ca8f0
files src/filedata.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)