Remove nl_langinfo hack
Ignore-this: 1f46fdb32bd81d98cd52744377da3dbb darcs-hash:20100214231939-a4fee-53f1a968c4e6a89f1526bbb85d9926688de4afda
This commit is contained in:
parent
9e6b9a4cf0
commit
f3022891df
@ -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);
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user