bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

str_list_print_wrap() causes missing characters


From: Masahiro Sakai
Subject: str_list_print_wrap() causes missing characters
Date: Mon, 23 Oct 2000 11:16:55 +0900 (JST)

Hi

str_list_print_wrap() causes missing characters,
if target language doesn't leave spaces between words.

If line_break == 0, str[cut_left + 1] can be a normal character.
But str_list_print_wrap() ignores the character.
The following patch will solve the problem.

--- parted-1.4.0-pre3.orig/parted/strlist.c     Sat Oct 21 15:01:27 2000
+++ parted-1.4.0-pre3/parted/strlist.c  Sun Oct 22 22:34:05 2000
@@ -462,7 +462,7 @@
                                line_break = 1;
                        }
 
-                       for (cut_right = cut_left + 2;
+                       for (cut_right = cut_left + (line_break ? 2 : 1);
                             cut_right < str_len && is_space (str [cut_right]);
                             cut_right++);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]