]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/readline/readline52-001
Merge remote-tracking branch 'origin/next' into thirteen
[people/pmueller/ipfire-2.x.git] / src / patches / readline / readline52-001
1 READLINE PATCH REPORT
2 =====================
3
4 Readline-Release: 5.2
5 Patch-ID: readline52-001
6
7 Bug-Reported-by: ebb9@byu.net
8 Bug-Reference-ID: <45540862.9030900@byu.net>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00017.html
10 http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00016.html
11
12 Bug-Description:
13
14 In some cases, code that is intended to be used in the presence of multibyte
15 characters is called when no such characters are present, leading to incorrect
16 display position calculations and incorrect redisplay.
17
18 Patch:
19
20 *** ../readline-5.2/display.c Thu Sep 14 14:20:12 2006
21 --- display.c Mon Nov 13 17:55:57 2006
22 ***************
23 *** 2381,2384 ****
24 --- 2409,2414 ----
25 if (end <= start)
26 return 0;
27 + if (MB_CUR_MAX == 1 || rl_byte_oriented)
28 + return (end - start);
29
30 memset (&ps, 0, sizeof (mbstate_t));