Remove nl_langinfo hack

Ignore-this: 1f46fdb32bd81d98cd52744377da3dbb

darcs-hash:20100214231939-a4fee-53f1a968c4e6a89f1526bbb85d9926688de4afda
This commit is contained in:
Henning Guenther 2010-02-14 15:19:39 -08:00
parent 9e6b9a4cf0
commit f3022891df
2 changed files with 3 additions and 7 deletions

View File

@ -1,9 +1,6 @@
#include "system_encoding.h"
char* get_system_encoding() {
#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
return nl_langinfo(CODESET);
#else
return "ASCII";
#endif
setlocale(LC_ALL,"");
return nl_langinfo(CODESET);
}

View File

@ -1,9 +1,8 @@
#ifndef __SYSTEM_ENCODING__
#define __SYSTEM_ENCODING__
#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
#include <langinfo.h>
#endif
#include <locale.h>
char* get_system_encoding();