[vlc-commits] commit: logger: output to file in local character set ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Thu Jul 22 19:36:13 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 22 20:25:48 2010 +0300| [b589a5b5c10b1510e9322b53572d926e0ca7566a] | committer: Rémi Denis-Courmont
logger: output to file in local character set
(cherry picked from commit cc856b0f652a65dba308025ef3502abea1534d25)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=b589a5b5c10b1510e9322b53572d926e0ca7566a
---
modules/misc/logger.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 14c7197..3aa4da7 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -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
More information about the vlc-commits
mailing list