Convert log messages sent to stdout to the current locale's charset.

git-svn-id: https://svn.musicpd.org/mpd/trunk@5227 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman
2007-01-08 04:31:44 +00:00
parent 90b4af0341
commit 438c1add9d
5 changed files with 32 additions and 11 deletions

View File

@@ -143,14 +143,10 @@ void initPaths(void)
}
closedir(dir);
if (fsCharsetParam) {
if (fsCharsetParam)
charset = xstrdup(fsCharsetParam->value);
} else if ((charset = getLocaleCharset())) {
if (*charset == '\0')
charset = NULL;
else
charset = xstrdup(charset);
}
else if ((charset = getLocaleCharset()))
charset = xstrdup(charset);
if (charset) {
setFsCharset(charset);