diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-19 15:56:31 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-19 15:56:31 +0000 |
commit | 278985b2fdff985ca9ba88444bc4a91ae92fe9d0 (patch) | |
tree | 41262357d23d7fd16518a497538d77a8c6613213 /src | |
parent | e40c676dba90b097596f1fb845eff432e59594ca (diff) | |
download | mpd-278985b2fdff985ca9ba88444bc4a91ae92fe9d0.tar.gz mpd-278985b2fdff985ca9ba88444bc4a91ae92fe9d0.tar.xz mpd-278985b2fdff985ca9ba88444bc4a91ae92fe9d0.zip |
more fun with LOCALE and LANGINFO
git-svn-id: https://svn.musicpd.org/mpd/trunk@299 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/path.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/path.c b/src/path.c index d475d356b..a7f143dc7 100644 --- a/src/path.c +++ b/src/path.c @@ -24,8 +24,8 @@ #include <stdlib.h> #include <string.h> -#ifdef HAVE_LC_MESSAGES -#ifdef HAVE_LANGINFO_CODESET +#ifdef HAVE_LOCALE +#ifdef HAVE_LANGINFO #include <locale.h> #include <langinfo.h> #endif @@ -87,8 +87,8 @@ char * getFsCharset() { } void initPaths() { -#ifdef HAVE_LC_MESSAGES -#ifdef HAVE_LANGINFO_CODESET +#ifdef HAVE_LOCALE +#ifdef HAVE_LANGINFO char * originalLocale; #endif #endif @@ -97,8 +97,8 @@ void initPaths() { if(getConf()[CONF_FS_CHARSET]) { charset = strdup(getConf()[CONF_FS_CHARSET]); } -#ifdef HAVE_LC_MESSAGES -#ifdef HAVE_LANGINFO_CODESET +#ifdef HAVE_LOCALE +#ifdef HAVE_LANGINFO else if((originalLocale = setlocale(LC_ALL,""))) { char * temp; |