OSDN Git Service

* libc/locale/locale.c: Drop Cygwin-specific windows.h include.
authorcorinna <corinna>
Wed, 23 Sep 2009 17:18:59 +0000 (17:18 +0000)
committercorinna <corinna>
Wed, 23 Sep 2009 17:18:59 +0000 (17:18 +0000)
(loadlocale): Call __set_charset_from_codepage with 0 codepage.

newlib/ChangeLog
newlib/libc/locale/locale.c

index c3f4596..63182d7 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
+
+       * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
+       (loadlocale): Call __set_charset_from_codepage with 0 codepage.
+
 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * libc/include/stdlib.h: Add posix_memalign.
index a01b312..ef7a7e4 100644 (file)
@@ -166,9 +166,6 @@ No supporting OS subroutines are required.
 #include <stdlib.h>
 #include <wchar.h>
 #include "../stdlib/local.h"
-#ifdef __CYGWIN__
-#include <windows.h>
-#endif
 
 #define _LC_LAST      7
 #define ENCODING_LEN 31
@@ -468,7 +465,7 @@ loadlocale(struct _reent *p, int category)
       else if (c[0] == '\0' || c[0] == '@')
        /* End of string or just a modifier */
 #ifdef __CYGWIN__
-       __set_charset_from_codepage (GetACP (), charset);
+       __set_charset_from_codepage (0, charset);
 #else
        strcpy (charset, "ISO-8859-1");
 #endif