OSDN Git Service

ui: Do not truncate flag names when printing
authorHans de Goede <hdegoede@redhat.com>
Fri, 18 Dec 2009 09:33:17 +0000 (10:33 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 18 Dec 2009 13:00:19 +0000 (14:00 +0100)
commitdba5a6bad835a3801911ebe154a7fa625142ceee
tree161487f88effdc16a8a8c154051dea8ee1d89fd2
parent4e02413718bee3813222b868e13c30ccc96ed764
ui: Do not truncate flag names when printing

The partition_print_flags() function was truncating the flag names,
but these are translated strings, and thus can contain multibyte
characters. Truncating multibyte chars in a non multibyte aware way
is not good and was causing issues when printing tables in Russian:
http://bugzilla.redhat.com/show_bug.cgi?id=543029

Since the truncating does not seem to make sense at all this patch
simply removes it (it was likely an attempt to stay within 80 chars
when printing, but as one partition can have multiple flags set this
won't work)

* parted/parted.c (partition_print_flags): Don't truncate flag names.
parted/parted.c