bash-4.2-027.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-027
  5. Bug-Reported-by: Mike Frysinger <vapier@gentoo.org>
  6. Bug-Reference-ID: <201204211243.30163.vapier@gentoo.org>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00134.html
  8. Bug-Description:
  9. When the `extglob' shell option is enabled, pattern substitution does not
  10. work correctly in the presence of multibyte characters.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.2-patched/subst.c 2012-03-11 17:52:57.000000000 -0400
  13. --- ./subst.c 2012-04-22 16:19:10.000000000 -0400
  14. ***************
  15. *** 4167,4171 ****
  16. #if defined (EXTENDED_GLOB)
  17. if (extended_glob)
  18. ! simple |= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
  19. #endif
  20. --- 4167,4171 ----
  21. #if defined (EXTENDED_GLOB)
  22. if (extended_glob)
  23. ! simple &= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
  24. #endif
  25. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  26. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  27. ***************
  28. *** 26,30 ****
  29. looks for to find the patch level (for the sccs version string). */
  30. ! #define PATCHLEVEL 26
  31. #endif /* _PATCHLEVEL_H_ */
  32. --- 26,30 ----
  33. looks for to find the patch level (for the sccs version string). */
  34. ! #define PATCHLEVEL 27
  35. #endif /* _PATCHLEVEL_H_ */