[vlc-commits] logger: output UTF-8 in text and prefix with a Byte Order Mark
Rémi Denis-Courmont
git at videolan.org
Thu Sep 22 15:33:32 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 22 16:32:23 2011 +0300| [829294ff29d956a63aee78e8eb2e3d33db6dc61d] | committer: Rémi Denis-Courmont
logger: output UTF-8 in text and prefix with a Byte Order Mark
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=829294ff29d956a63aee78e8eb2e3d33db6dc61d
---
modules/misc/logger.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 9cc4ee6..0dcaef5 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -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] );
+ fprintf( stream, fmt, ap );
putc_unlocked( '\n', stream );
funlockfile( stream );
vlc_restorecancel( canc );
More information about the vlc-commits
mailing list