7 Bug-Reported-by: Jim Meyering <jim@meyering.net>
8 Bug-Reference-ID: <87bs6v8iib.fsf@pixie.eng.ascend.com>
9 Bug-Reference-URL: http://mail.gnu.org/archive/html/bug-bash/2002-09/msg00047.html
13 When in a locale with multibyte characters, the readline display updater
14 will occasionally cause a segmentation fault when attempting to compute
15 the length of the first multibyte character on the line.
19 *** ../bash-2.05b/lib/readline/mbutil.c Tue Jun 4 11:54:29 2002
20 --- lib/readline/mbutil.c Mon Aug 5 11:20:39 2002
24 /* shorted to compose multibyte char */
25 ! memset (ps, 0, sizeof(mbstate_t));
30 /* shorted to compose multibyte char */
32 ! memset (ps, 0, sizeof(mbstate_t));
37 /* invalid to compose multibyte char */
38 /* initialize the conversion state */
39 ! memset (ps, 0, sizeof(mbstate_t));
43 /* invalid to compose multibyte char */
44 /* initialize the conversion state */
46 ! memset (ps, 0, sizeof(mbstate_t));
52 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2)
54 ! mbstate_t *ps1, *ps2;
60 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2)
71 /* clear the state of the byte sequence, because
72 in this case effect of mbstate is undefined */
73 ! memset (ps, 0, sizeof (mbstate_t));
78 /* clear the state of the byte sequence, because
79 in this case effect of mbstate is undefined */
81 ! memset (ps, 0, sizeof (mbstate_t));