]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/readline/readline52-001
Merge remote-tracking branch 'origin/next' into thirteen
[people/pmueller/ipfire-2.x.git] / src / patches / readline / readline52-001
CommitLineData
f19b3cb6
MT
1 READLINE PATCH REPORT
2 =====================
3
4Readline-Release: 5.2
5Patch-ID: readline52-001
6
7Bug-Reported-by: ebb9@byu.net
8Bug-Reference-ID: <45540862.9030900@byu.net>
9Bug-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
12Bug-Description:
13
14In some cases, code that is intended to be used in the presence of multibyte
15characters is called when no such characters are present, leading to incorrect
16display position calculations and incorrect redisplay.
17
18Patch:
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));