# HG changeset patch # User ib # Date 1295623458 0 # Node ID 25a3c1b7d09094f14b35d7a5fcc4261ea76719c2 # Parent 77ef1bcd464fe61948d958a3927da0d4bf415528 Add two missing conversions for enabling non-UTF-8 encoded filenames. diff -r 77ef1bcd464f -r 25a3c1b7d090 gui/mplayer/gtk/fs.c --- a/gui/mplayer/gtk/fs.c Fri Jan 21 15:20:00 2011 +0000 +++ b/gui/mplayer/gtk/fs.c Fri Jan 21 15:24:18 2011 +0000 @@ -336,7 +336,7 @@ for ( i=0;i < fsPersistant_MaxPos;i++ ) if ( fsHistory[i] ) { fsTopList_items=g_list_append( fsTopList_items,fsHistory[i] ); c=0; } } - if ( c ) fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name() ); + if ( c ) fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name_utf8() ); } if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) ); fsTopList_items=g_list_append( fsTopList_items,"/home" ); @@ -507,7 +507,7 @@ if ( !strcmp( item->data,fsSelectedDirectory ) ) i=0; item=item->next; } - if ( i ) fsTopList_items=g_list_prepend( fsTopList_items,(gchar *)get_current_dir_name() ); + if ( i ) fsTopList_items=g_list_prepend( fsTopList_items,(gchar *)get_current_dir_name_utf8() ); if ( mplMainAutoPlay ) { mplMainAutoPlay=0; mplEventHandling( evPlay,0 ); } else guiGetEvent( guiCEvent,guiSetStop ); }