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:
10
src/path.c
10
src/path.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user