diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-01-08 05:04:08 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-01-08 05:04:08 +0000 |
commit | 44c5549b46a266a55b3e03c4cea19d4502cdd9e2 (patch) | |
tree | e3c4648a6813d1e83d07a7b7f51d6a21fc207d29 /src | |
parent | 4989672ac0d8c7766b2ccd904546127e800a8de7 (diff) | |
download | mpd-44c5549b46a266a55b3e03c4cea19d4502cdd9e2.tar.gz mpd-44c5549b46a266a55b3e03c4cea19d4502cdd9e2.tar.xz mpd-44c5549b46a266a55b3e03c4cea19d4502cdd9e2.zip |
Output warning messages in the current locale's charset.
git-svn-id: https://svn.musicpd.org/mpd/trunk@5229 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/log.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |