use AM_LANGINFO_CODESET in configure.ac, old configure.ac wasn't checking

for CODESET

git-svn-id: https://svn.musicpd.org/mpd/trunk@990 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-05-11 15:17:20 +00:00
parent 69cd6eacaf
commit 011757d89c
2 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,7 @@
#include <unistd.h>
#ifdef HAVE_LOCALE
#ifdef HAVE_LANGINFO
#ifdef HAVE_LANGINFO_CODESET
#include <locale.h>
#include <langinfo.h>
#endif
@@ -138,7 +138,7 @@ void initPaths(char * playlistDirArg, char * musicDirArg) {
charset = strdup(getConf()[CONF_FS_CHARSET]);
}
#ifdef HAVE_LOCALE
#ifdef HAVE_LANGINFO
#ifdef HAVE_LANGINFO_CODESET
else if((originalLocale = setlocale(LC_CTYPE,NULL))) {
char * temp;
char * currentLocale;