summaryrefslogtreecommitdiffstats
path: root/newlib/libc/locale/locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/locale/locale.c')
-rw-r--r--newlib/libc/locale/locale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index ee24872b2..8e2b121bc 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -188,7 +188,11 @@ No supporting OS subroutines are required.
#define _LC_LAST 7
#define ENCODING_LEN 31
+#ifdef __CYGWIN__ /* Cygwin starts with LC_CTYPE set to "C.UTF-8". */
+int __EXPORT __mb_cur_max = 6;
+#else
int __EXPORT __mb_cur_max = 1;
+#endif
int __nlocale_changed = 0;
int __mlocale_changed = 0;