bash-4.1-002.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.1
  4. Patch-ID: bash41-002
  5. Bug-Reported-by: guillaume.outters@free.fr
  6. Bug-Reference-ID: <20100105230441.70D171AA7F52@asterix.local>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-01/msg00017.html
  8. Bug-Description:
  9. Bash-4.1/Readline-6.1 introduced a hook function that allows applications
  10. to rewrite or modify filenames read from the file system before comparing
  11. them with a word to be completed. The converted filename, if it matches,
  12. needs to be inserted into the line buffer, replacing the original contents.
  13. This fixes a completion bug on Mac OS X involving filenames containing
  14. UTF-8 characters.
  15. Patch (apply with `patch -p0'):
  16. *** ../bash-4.1-patched/lib/readline/complete.c 2009-11-29 18:39:30.000000000 -0500
  17. --- ./lib/readline/complete.c 2010-01-06 08:30:23.000000000 -0500
  18. ***************
  19. *** 2139,2143 ****
  20. if (filename_len == 0)
  21. {
  22. ! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (entry->d_name))
  23. continue;
  24. --- 2139,2143 ----
  25. if (filename_len == 0)
  26. {
  27. ! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (convfn))
  28. continue;
  29. ***************
  30. *** 2220,2224 ****
  31. }
  32. ! strcpy (temp + dirlen, entry->d_name);
  33. }
  34. else
  35. --- 2220,2224 ----
  36. }
  37. ! strcpy (temp + dirlen, convfn);
  38. }
  39. else
  40. *** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
  41. --- ./patchlevel.h 2010-01-14 09:38:08.000000000 -0500
  42. ***************
  43. *** 26,30 ****
  44. looks for to find the patch level (for the sccs version string). */
  45. ! #define PATCHLEVEL 1
  46. #endif /* _PATCHLEVEL_H_ */
  47. --- 26,30 ----
  48. looks for to find the patch level (for the sccs version string). */
  49. ! #define PATCHLEVEL 2
  50. #endif /* _PATCHLEVEL_H_ */