Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-03-30 00:27:15 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-03-30 00:27:15 +0400
commit9ae37ea0c61324f730d71739e919af70cb1900a7 (patch)
tree9630685351c3b3ea7b2316f2fa31489b0d8020eb /newlib/libc/locale
parent6e4ac6e81c32120013dfbe513de8d1152fe97b19 (diff)
* libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value
with default UTF-8 charset.
Diffstat (limited to 'newlib/libc/locale')
-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;