7 Bug-Reported-by: Len Lattanzi <llattanzi@apple.com>
8 Bug-Reference-ID: <52B1297F-6675-45CC-B63E-24745337D006@apple.com>
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-05-29 23:09:26.000000000 -0400
20 --- lib/readline/mbutil.c 2009-05-29 23:10:12.000000000 -0400
23 int seed, count, find_non_zero;
29 int seed, count, find_non_zero;
38 ! tmp = mbrtowc (&wc, string+point, strlen(string + point), &ps);
39 if (MB_INVALIDCH ((size_t)tmp))
44 ! len = strlen (string + point);
47 ! tmp = mbrtowc (&wc, string+point, len, &ps);
48 if (MB_INVALIDCH ((size_t)tmp))
50 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
51 --- patchlevel.h Mon Oct 16 14:22:54 2006
54 looks for to find the patch level (for the sccs version string). */
56 ! #define PATCHLEVEL 48
58 #endif /* _PATCHLEVEL_H_ */
60 looks for to find the patch level (for the sccs version string). */
62 ! #define PATCHLEVEL 49
64 #endif /* _PATCHLEVEL_H_ */