]> git.sesse.net Git - vlc/blobdiff - src/playlist/loadsave.c
All Unicode fixes for fopen() (refs #528)
[vlc] / src / playlist / loadsave.c
index 10945281e50ee37c8fed6939fb281d7c5b230476..c3684fba8f8385afb0053ed29d1d4325a6553aeb 100644 (file)
@@ -31,6 +31,7 @@
 #include <vlc/input.h>
 
 #include "vlc_playlist.h"
+#include "charset.h"
 
 #define PLAYLIST_FILE_HEADER  "# vlc playlist file version 0.5"
 
@@ -126,7 +127,7 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
         msg_Err( p_playlist, "out of memory");
         return VLC_ENOMEM;
     }
-    p_export->p_file = fopen( psz_filename, "wt" );
+    p_export->p_file = utf8_fopen( psz_filename, "wt" );
     if( !p_export->p_file )
     {
         msg_Err( p_playlist , "could not create playlist file %s"