Author: aurel32
Date: 2009-02-28 20:00:18 +0000 (Sat, 28 Feb 2009)
New Revision: 3343

Modified:
   glibc-package/branches/eglibc-2.9/debian/changelog
   
glibc-package/branches/eglibc-2.9/debian/patches/any/cvs-bz9697-posix-regcomp.diff
Log:
    - Update any/cvs-bz9697-posix-regcomp.diff.



Modified: glibc-package/branches/eglibc-2.9/debian/changelog
===================================================================
--- glibc-package/branches/eglibc-2.9/debian/changelog  2009-02-27 21:39:04 UTC 
(rev 3342)
+++ glibc-package/branches/eglibc-2.9/debian/changelog  2009-02-28 20:00:18 UTC 
(rev 3343)
@@ -4,10 +4,11 @@
     branch.
     - Update all/submitted-readme-version.diff.
     - Update any/local-bashisms.diff.
+    - Update any/cvs-bz9697-posix-regcomp.diff.
     - Drop any/local-makeconfig.diff.
     - Drop any/submitted-getcwd-sys_param_h.diff (merged in eglibc).
 
- -- Aurelien Jarno <[email protected]>  Fri, 27 Feb 2009 22:03:13 +0100
+ -- Aurelien Jarno <[email protected]>  Sat, 28 Feb 2009 20:53:59 +0100
 
 glibc (2.9-5) unstable; urgency=low
 

Modified: 
glibc-package/branches/eglibc-2.9/debian/patches/any/cvs-bz9697-posix-regcomp.diff
===================================================================
--- 
glibc-package/branches/eglibc-2.9/debian/patches/any/cvs-bz9697-posix-regcomp.diff
  2009-02-27 21:39:04 UTC (rev 3342)
+++ 
glibc-package/branches/eglibc-2.9/debian/patches/any/cvs-bz9697-posix-regcomp.diff
  2009-02-28 20:00:18 UTC (rev 3343)
@@ -77,16 +77,27 @@
     This file is part of the GNU C Library.
     Contributed by Isamu Hasegawa <[email protected]>.
  
-@@ -350,47 +351,67 @@
- #ifdef RE_ENABLE_I18N
+@@ -327,8 +328,8 @@
+                    && dfa->nodes[node].mb_partial)
+               *p++ = dfa->nodes[node].opr.c;
+             memset (&state, '\0', sizeof (state));
+-            if (mbrtowc (&wc, (const char *) buf, p - buf,
+-                         &state) == p - buf
++            if (__mbrtowc (&wc, (const char *) buf, p - buf,
++                           &state) == p - buf
+                 && (__wcrtomb ((char *) buf, towlower (wc), &state)
+                     != (size_t) -1))
+               re_set_fastmap (fastmap, 0, buf[0]);
+@@ -354,47 +355,67 @@
+ #if defined RE_ENABLE_I18N && __OPTION_EGLIBC_LOCALE_CODE
        else if (type == COMPLEX_BRACKET)
        {
--        int i;
-         re_charset_t *cset = dfa->nodes[node].opr.mbcset;
++        re_charset_t *cset = dfa->nodes[node].opr.mbcset;
+         int i;
+-        re_charset_t *cset = dfa->nodes[node].opr.mbcset;
 -        if (cset->non_match || cset->ncoll_syms || cset->nequiv_classes
 -            || cset->nranges || cset->nchar_classes)
 -          {
-+        int i;
 +
  # ifdef _LIBC
 -            if (_NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES) != 0)
@@ -112,7 +123,7 @@
                      re_set_fastmap (fastmap, icase, i);
                }
 -# else
--            if (dfa->mb_cur_max > 1)
+-            if (dfa_mb_cur_max (dfa) > 1)
 -              for (i = 0; i < SBC_MAX; ++i)
 -                if (__btowc (i) == WEOF)
 -                  re_set_fastmap (fastmap, icase, i);
@@ -125,7 +136,7 @@
 +           i.e. where we would not find an invalid sequence.  This only
 +           applies to multibyte character sets; for single byte character
 +           sets, the SIMPLE_BRACKET again suffices.  */
-+        if (dfa->mb_cur_max > 1
++        if (dfa_mb_cur_max (dfa) > 1
 +            && (cset->nchar_classes || cset->non_match
 +# ifdef _LIBC
 +                || cset->nequiv_classes
@@ -137,7 +148,7 @@
 -            memset (&state, '\0', sizeof (state));
 -            if (__wcrtomb (buf, cset->mbchars[i], &state) != (size_t) -1)
 -              re_set_fastmap (fastmap, icase, *(unsigned char *) buf);
--            if ((bufp->syntax & RE_ICASE) && dfa->mb_cur_max > 1)
+-            if ((bufp->syntax & RE_ICASE) && dfa_mb_cur_max (dfa) > 1)
 +            unsigned char c = 0;
 +            do
                {
@@ -162,7 +173,7 @@
 +                memset (&state, '\0', sizeof (state));
 +                if (__wcrtomb (buf, cset->mbchars[i], &state) != (size_t) -1)
 +                  re_set_fastmap (fastmap, icase, *(unsigned char *) buf);
-+                if ((bufp->syntax & RE_ICASE) && dfa->mb_cur_max > 1)
++                if ((bufp->syntax & RE_ICASE) && dfa_mb_cur_max (dfa) > 1)
 +                  {
 +                    if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state)
 +                        != (size_t) -1)
@@ -171,5 +182,5 @@
 +              }
 +          }
        }
- #endif /* RE_ENABLE_I18N */
+ #endif /* RE_ENABLE_I18N && __OPTION_EGLIBC_LOCALE_CODE */
        else if (type == OP_PERIOD


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to