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

logger: output UTF-8 in text mode and prefix with a Byte Order Mark

parent 409e6544
......@@ -49,7 +49,7 @@
#define LOG_FILE_TEXT "vlc-log.txt"
#define LOG_FILE_HTML "vlc-log.html"
#define TEXT_HEADER "-- logger module started --\n"
#define TEXT_HEADER "\xEF\xBB\xBF-- logger module started --\n"
#define TEXT_FOOTER "-- logger module stopped --\n"
#define HTML_HEADER \
......@@ -349,8 +349,8 @@ static void TextPrint( void *opaque, int type, const msg_item_t *item,
int canc = vlc_savecancel();
flockfile( stream );
utf8_fprintf( stream, "%s%s: ", item->psz_module, ppsz_type[type] );
utf8_fprintf( stream, fmt, ap );
fprintf( stream, "%s%s: ", item->psz_module, ppsz_type[type] );
vfprintf( stream, fmt, ap );
putc_unlocked( '\n', stream );
funlockfile( stream );
vlc_restorecancel( canc );
......
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