aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}
}