readline52-001.patch 887 B

123456789101112131415161718192021222324252627282930
  1. READLINE PATCH REPORT
  2. =====================
  3. Readline-Release: 5.2
  4. Patch-ID: readline52-001
  5. Bug-Reported-by: ebb9@byu.net
  6. Bug-Reference-ID: <45540862.9030900@byu.net>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00017.html
  8. http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00016.html
  9. Bug-Description:
  10. In some cases, code that is intended to be used in the presence of multibyte
  11. characters is called when no such characters are present, leading to incorrect
  12. display position calculations and incorrect redisplay.
  13. Patch:
  14. *** ../readline-5.2/display.c Thu Sep 14 14:20:12 2006
  15. --- readline-5.2/display.c Mon Nov 13 17:55:57 2006
  16. ***************
  17. *** 2381,2384 ****
  18. --- 2409,2414 ----
  19. if (end <= start)
  20. return 0;
  21. + if (MB_CUR_MAX == 1 || rl_byte_oriented)
  22. + return (end - start);
  23. memset (&ps, 0, sizeof (mbstate_t));