7 Bug-Reported-by: Mike Frysinger <vapier@gentoo.org>
8 Bug-Reference-ID: <201204211243.30163.vapier@gentoo.org>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00134.html
13 When the `extglob' shell option is enabled, pattern substitution does not
14 work correctly in the presence of multibyte characters.
16 Patch (apply with `patch -p0'):
20 @@ -4166,7 +4166,7 @@ match_wpattern (wstring, indices, wstrle
21 simple = (wpat[0] != L'\\' && wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'[');
22 #if defined (EXTENDED_GLOB)
24 - simple |= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
25 + simple &= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
28 /* If the pattern doesn't match anywhere in the string, go ahead and
32 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
33 looks for to find the patch level (for the sccs version string). */
35 -#define PATCHLEVEL 26
36 +#define PATCHLEVEL 27
38 #endif /* _PATCHLEVEL_H_ */