File readline-5.2-wrap.patch of Package libreadline5

--- display.c
+++ display.c	2006-11-13 16:55:24.000000000 +0100
@@ -665,7 +665,10 @@
       inv_lbreaks[++newlines] = temp;
 #if defined (HANDLE_MULTIBYTE)
       if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)
-	lpos -= _rl_col_width (local_prompt, n0, num);
+	{
+	  if (local_prompt_len > 0)
+	    lpos -= _rl_col_width (local_prompt, n0, num);
+	}
       else
 #endif
 	lpos -= _rl_screenwidth;