diff options
Diffstat (limited to 'winsup/mingw/mingwex/mb_wc_common.h')
-rwxr-xr-x | winsup/mingw/mingwex/mb_wc_common.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/winsup/mingw/mingwex/mb_wc_common.h b/winsup/mingw/mingwex/mb_wc_common.h deleted file mode 100755 index a4ea81cf2..000000000 --- a/winsup/mingw/mingwex/mb_wc_common.h +++ /dev/null @@ -1,18 +0,0 @@ -#include <locale.h> -#include <string.h> -#include <stdlib.h> - -static inline -unsigned int get_cp_from_locale (void) -{ - char* cp_string; - /* - locale :: "lang[_country[.code_page]]" - | ".code_page" - - */ - - if ((cp_string = strchr(setlocale(LC_CTYPE, NULL), '.'))) - return ((unsigned) atoi (cp_string + 1)); - return 0; -} |