Author: matthew
Date: 2007-01-31 11:25:09 -0700 (Wed, 31 Jan 2007)
New Revision: 1757

Added:
   trunk/readline/readline-5.2-fixes-1.patch
Log:
Add upstream fixes from the Readline maintainer.

Added: trunk/readline/readline-5.2-fixes-1.patch
===================================================================
--- trunk/readline/readline-5.2-fixes-1.patch                           (rev 0)
+++ trunk/readline/readline-5.2-fixes-1.patch   2007-01-31 18:25:09 UTC (rev 
1757)
@@ -0,0 +1,22 @@
+Submitted By: Matt Burgess (matthew at linuxfromscratch dot org)
+Date: 2007-01-31
+Initial Package Version: 5.2
+Upstream Status: From Upstream
+Origin: http://ftp.gnu.org/gnu/readline/readline-5.2-patches/
+Description: Patch 001 from upstream: In some cases, code that is intended to 
be
+             used in the presence of multibyte characters is called when no 
such
+             characters are present, leading to incorrect display position
+             calculations and incorrect redisplay.
+
+diff -Naur readline-5.2.orig/display.c readline-5.2/display.c
+--- readline-5.2.orig/display.c        2006-09-14 18:20:12.000000000 +0000
++++ readline-5.2/display.c     2007-01-28 18:46:11.000000000 +0000
+@@ -2380,6 +2380,8 @@
+ 
+   if (end <= start)
+     return 0;
++  if (MB_CUR_MAX == 1 || rl_byte_oriented)
++    return (end - start);
+ 
+   memset (&ps, 0, sizeof (mbstate_t));
+ 

-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to