From 32cb8c8cfe21f747b507ec34aa81f717b766c38f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 17 Jan 2010 09:39:06 +0000 Subject: * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to "UTF-8" on Cygwin. (lc_message_charset): Ditto. (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on Cygwin. * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment. * libc/stdlib/wctomb_r.c (__wctomb): Ditto. --- newlib/libc/stdlib/wctomb_r.c | 1 + 1 file changed, 1 insertion(+) (limited to 'newlib/libc/stdlib/wctomb_r.c') diff --git a/newlib/libc/stdlib/wctomb_r.c b/newlib/libc/stdlib/wctomb_r.c index d1ee4978d..98a0b74c0 100644 --- a/newlib/libc/stdlib/wctomb_r.c +++ b/newlib/libc/stdlib/wctomb_r.c @@ -9,6 +9,7 @@ int (*__wctomb) (struct _reent *, char *, wchar_t, const char *charset, mbstate_t *) #ifdef __CYGWIN__ + /* Cygwin starts up in UTF-8 mode. */ = __utf8_wctomb; #else = __ascii_wctomb; -- cgit v1.2.3