7 Bug-Reported-by: Jan Hnatek <Jan.Hnatek@Sun.COM>
8 Bug-Reference-ID: <4A44991F.8010005@sun.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-06/msg00084.html
13 On systems where mbrtowc() returns -2 when passed a length argument with
14 value 0, when using a multibyte locale, Readline's emacs-mode forward-char
15 at the end of a line will leave the point beyond the end of the line.
19 *** ../bash-3.2-patched/lib/readline/mbutil.c 2009-06-16 11:26:50.000000000 -0400
20 --- lib/readline/mbutil.c 2009-01-04 14:32:33.000000000 -0500
24 tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
25 ! while (tmp > 0 && wcwidth (wc) == 0)
28 tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
29 - if (MB_NULLWCH (tmp) || MB_INVALIDCH (tmp))
35 tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
36 ! while (MB_NULLWCH (tmp) == 0 && MB_INVALIDCH (tmp) == 0 && wcwidth (wc) == 0)
39 tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
42 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
43 --- patchlevel.h Mon Oct 16 14:22:54 2006
46 looks for to find the patch level (for the sccs version string). */
48 ! #define PATCHLEVEL 49
50 #endif /* _PATCHLEVEL_H_ */
52 looks for to find the patch level (for the sccs version string). */
54 ! #define PATCHLEVEL 50
56 #endif /* _PATCHLEVEL_H_ */