5 Patch-ID: readline52-014
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 *** ../readline-5.2-patched/mbutil.c 2009-05-29 23:09:26.000000000 -0400
20 --- 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))