]> git.sesse.net Git - vlc/commitdiff
Recode output in rc interface to current locale
authorPavlov Konstantin <thresh@videolan.org>
Fri, 1 Sep 2006 08:03:00 +0000 (08:03 +0000)
committerPavlov Konstantin <thresh@videolan.org>
Fri, 1 Sep 2006 08:03:00 +0000 (08:03 +0000)
modules/control/rc.c

index 697b776911bc716ea38efb07a470b67cf0ffa65d..f4c216b44aa26ac4e8774839bf044107424cd0f0 100644 (file)
@@ -54,6 +54,8 @@
 #include "network.h"
 #include "vlc_url.h"
 
+#include "charset.h"
+
 #if defined(AF_UNIX) && !defined(AF_LOCAL)
 #    define AF_LOCAL AF_UNIX
 #endif
@@ -137,7 +139,7 @@ void __msg_rc( intf_thread_t *p_intf, const char *psz_fmt, ... )
 
     if( p_intf->p_sys->i_socket == -1 )
     {
-        vprintf( psz_fmt, args );
+        utf8_vfprintf( stdout, psz_fmt, args );
         printf( "\r\n" );
     }
     else