From 44c5549b46a266a55b3e03c4cea19d4502cdd9e2 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Mon, 8 Jan 2007 05:04:08 +0000 Subject: Output warning messages in the current locale's charset. git-svn-id: https://svn.musicpd.org/mpd/trunk@5229 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/log.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 242caf31f..6b7e3c2d4 100644 --- a/src/log.c +++ b/src/log.c @@ -113,7 +113,10 @@ void flushWarningLog(void) if (next == NULL) break; *next = '\0'; next++; - fprintf(stderr, "%s\n", s); + if (stdout_mode) + fprintf(stderr, "%s\n", utf8ToLocaleCharset(s)); + else + fprintf(stderr, "%s\n", s); s = next; } -- cgit v1.2.3