changeset 32722:25a3c1b7d090

Add two missing conversions for enabling non-UTF-8 encoded filenames.
author ib
date Fri, 21 Jan 2011 15:24:18 +0000
parents 77ef1bcd464f
children 5310794ef052
files gui/mplayer/gtk/fs.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 );
 }