Commit b589a5b5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

logger: output to file in local character set

(cherry picked from commit cc856b0f652a65dba308025ef3502abea1534d25)
parent ebd7e0c3
......@@ -34,6 +34,7 @@
#include <vlc_interface.h>
#include <vlc_playlist.h>
#include <vlc_fs.h>
#include <vlc_charset.h>
#include <assert.h>
......@@ -406,8 +407,8 @@ static const char ppsz_type[4][11] = {
static void TextPrint( const msg_item_t *p_msg, FILE *p_file )
{
fprintf( p_file, "%s%s%s\n", p_msg->psz_module, ppsz_type[p_msg->i_type],
p_msg->psz_msg );
utf8_fprintf( p_file, "%s%s%s\n", p_msg->psz_module,
ppsz_type[p_msg->i_type], p_msg->psz_msg );
}
#ifdef HAVE_SYSLOG_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment