more fun with LOCALE and LANGINFO
git-svn-id: https://svn.musicpd.org/mpd/trunk@299 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
12
src/path.c
12
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;
|
||||
|
||||
|
Reference in New Issue
Block a user