aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c5
1 files changed, 4 insertions, 1 deletions
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;
}