changeset 33788:03b638e2b994

Revise and fix r33497. The history is UTF-8 encoded, so decode the directory name prior to its usage. This also makes old_path an allocated string now - as it should be. This closes Bugzilla #1376.
author ib
date Mon, 11 Jul 2011 15:19:56 +0000
parents 42feff0f8a7b
children 475d96f700d4
files gui/ui/gtk/playlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/gtk/playlist.c	Mon Jul 11 14:54:25 2011 +0000
+++ b/gui/ui/gtk/playlist.c	Mon Jul 11 15:19:56 2011 +0000
@@ -489,7 +489,7 @@
   gtk_ctree_expand( GTK_CTREE( CTDirTree ),parent );
   gtk_widget_show( CTDirTree );
 
-  old_path = fsHistory[0];
+  old_path = g_filename_from_utf8( fsHistory[0], -1, NULL, NULL, NULL );
 
   gtk_clist_set_column_widget( GTK_CLIST( CTDirTree ),0,
     AddLabel( MSGTR_PLAYLIST_DirectoryTree,NULL ) );