Output warning messages in the current locale's charset.

git-svn-id: https://svn.musicpd.org/mpd/trunk@5229 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-01-08 05:04:08 +00:00
parent 4989672ac0
commit 44c5549b46

View File

@ -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;
}