393b612
			     BASH PATCH REPORT
393b612
			     =================
393b612
393b612
Bash-Release: 3.2
393b612
Patch-ID: bash32-006
393b612
393b612
Bug-Reported-by:	ebb9@byu.net
393b612
Bug-Reference-ID:	<45540862.9030900@byu.net>
393b612
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00017.html
393b612
			http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00016.html
393b612
393b612
Bug-Description:
393b612
393b612
In some cases, code that is intended to be used in the presence of multibyte
393b612
characters is called when no such characters are present, leading to incorrect
393b612
display position calculations and incorrect redisplay.
393b612
393b612
Patch:
393b612
393b612
*** ../bash-3.2-patched/lib/readline/display.c	Thu Sep 14 14:20:12 2006
393b612
--- lib/readline/display.c	Mon Nov 13 17:55:57 2006
393b612
***************
393b612
*** 2381,2384 ****
393b612
--- 2409,2414 ----
393b612
    if (end <= start)
393b612
      return 0;
393b612
+   if (MB_CUR_MAX == 1 || rl_byte_oriented)
393b612
+     return (end - start);
393b612
  
393b612
    memset (&ps, 0, sizeof (mbstate_t));
393b612
*** ../bash-3.2/patchlevel.h	Thu Apr 13 08:31:04 2006
393b612
--- patchlevel.h	Mon Oct 16 14:22:54 2006
393b612
***************
393b612
*** 26,30 ****
393b612
     looks for to find the patch level (for the sccs version string). */
393b612
  
393b612
! #define PATCHLEVEL 5
393b612
  
393b612
  #endif /* _PATCHLEVEL_H_ */
393b612
--- 26,30 ----
393b612
     looks for to find the patch level (for the sccs version string). */
393b612
  
393b612
! #define PATCHLEVEL 6
393b612
  
393b612
  #endif /* _PATCHLEVEL_H_ */