# HG changeset patch # User ib # Date 1310397596 0 # Node ID 03b638e2b99495fc383c1528ed7251812d442283 # Parent 42feff0f8a7bd738afcaf630d4cd1e7f52372398 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. diff -r 42feff0f8a7b -r 03b638e2b994 gui/ui/gtk/playlist.c --- 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 ) );