* mingwex/mb_wc_common.h (get_codepage): Get it
from __lc_codepage.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2006-09-19  Danny Smith  <dannysmith@users.sourceforge.net> | ||||||
|  |  | ||||||
|  | 	* mingwex/mb_wc_common.h (get_codepage): Get it | ||||||
|  | 	from __lc_codepage. | ||||||
|  |  | ||||||
| 2006-09-18  Danny Smith  <dannysmith@users.sourceforge.net> | 2006-09-18  Danny Smith  <dannysmith@users.sourceforge.net> | ||||||
|  |  | ||||||
| 	* mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity. | 	* mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity. | ||||||
|   | |||||||
| @@ -1,18 +1,7 @@ | |||||||
| #include <locale.h> | __declspec(dllimport) unsigned int __lc_codepage; | ||||||
| #include <string.h> |  | ||||||
| #include <stdlib.h> |  | ||||||
|  |  | ||||||
| static inline | static inline | ||||||
| unsigned int get_codepage (void) | unsigned int get_codepage (void) | ||||||
| { | { | ||||||
|   char* cp_string; |   return __lc_codepage; | ||||||
|   /* |  | ||||||
|     locale :: "lang[_country[.code_page]]"  |  | ||||||
|                | ".code_page" |  | ||||||
|  |  | ||||||
|   */ |  | ||||||
|  |  | ||||||
|   if ((cp_string = strchr(setlocale(LC_CTYPE, NULL), '.'))) |  | ||||||
|     return  ((unsigned) atoi (cp_string + 1)); |  | ||||||
|   return 0; |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user