* ctype.cc (__set_ctype): Copy exact part of the current active

character class array.
This commit is contained in:
Corinna Vinschen 2009-04-21 20:10:55 +00:00
parent c28545227a
commit 27378802ea
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-04-21 Corinna Vinschen <corinna@vinschen.de>
* ctype.cc (__set_ctype): Copy exact part of the current active
character class array.
2009-04-20 Corinna Vinschen <corinna@vinschen.de>
* flock.cc (lf_setlock): Handle border case which results in WFMO loop

View File

@ -34,7 +34,7 @@ __set_ctype (const char *charset)
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
{
memcpy (_ctype_b, __ctype_iso[idx], 128);
memcpy (_ctype_b + 256, __ctype_iso[idx], 128);
memcpy (_ctype_b + 256, __ctype_iso[idx] + 256, 128);
}
__ctype_ptr__ = (char *) (__ctype_iso[idx] + 127);
return;
@ -45,7 +45,7 @@ __set_ctype (const char *charset)
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
{
memcpy (_ctype_b, __ctype_cp[idx], 128);
memcpy (_ctype_b + 256, __ctype_cp[idx], 128);
memcpy (_ctype_b + 256, __ctype_cp[idx] + 256, 128);
}
__ctype_ptr__ = (char *) (__ctype_cp[idx] + 127);
return;