aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-19 16:05:09 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-19 16:05:09 +0000
commit6100ca86a3e304172bdfbd27b37718ed8dc9c924 (patch)
treea772a070d2eeff04ce1cd1d5264ee3857edbea4a /src
parent278985b2fdff985ca9ba88444bc4a91ae92fe9d0 (diff)
downloadmpd-6100ca86a3e304172bdfbd27b37718ed8dc9c924.tar.gz
mpd-6100ca86a3e304172bdfbd27b37718ed8dc9c924.tar.xz
mpd-6100ca86a3e304172bdfbd27b37718ed8dc9c924.zip
use LC_CTYPE instead of LC_ALL
git-svn-id: https://svn.musicpd.org/mpd/trunk@302 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index a7f143dc7..5a73baa86 100644
--- a/src/path.c
+++ b/src/path.c
@@ -99,14 +99,14 @@ void initPaths() {
}
#ifdef HAVE_LOCALE
#ifdef HAVE_LANGINFO
- else if((originalLocale = setlocale(LC_ALL,""))) {
+ else if((originalLocale = setlocale(LC_CTYPE,""))) {
char * temp;
if((temp = nl_langinfo(CODESET))) {
charset = strdup(temp);
}
else ERROR("problems getting charset for locale\n");
- if(!setlocale(LC_ALL,originalLocale)) {
+ if(!setlocale(LC_CTYPE,originalLocale)) {
ERROR("problems resetting locale with setlocale()\n");
}
}