[MPlayer-cvslog] r33876 - trunk/gui/ui/gtk/playlist.c
    ib 
    subversion at mplayerhq.hu
       
    Mon Jul 11 17:19:56 CEST 2011
    
    
  
Author: ib
Date: Mon Jul 11 17:19:56 2011
New Revision: 33876
Log:
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.
Modified:
   trunk/gui/ui/gtk/playlist.c
Modified: trunk/gui/ui/gtk/playlist.c
==============================================================================
--- trunk/gui/ui/gtk/playlist.c	Mon Jul 11 16:54:25 2011	(r33875)
+++ trunk/gui/ui/gtk/playlist.c	Mon Jul 11 17:19:56 2011	(r33876)
@@ -489,7 +489,7 @@ GtkWidget * create_PlayList( void )
   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 ) );
    
    
More information about the MPlayer-cvslog
mailing list