* libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value

with default UTF-8 charset.
This commit is contained in:
Corinna Vinschen 2012-03-29 20:27:15 +00:00
parent 6e4ac6e81c
commit 9ae37ea0c6
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-03-29 Corinna Vinschen <vinschen@redhat.com>
* libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value
with default UTF-8 charset.
2012-03-26 Corinna Vinschen <vinschen@redhat.com>
* libc/stdio/findfp.c (__sinit): Set __sdidinit last.

View File

@ -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;