]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: use libsmartcols ASCII for non-widechar environment
authorKarel Zak <kzak@redhat.com>
Fri, 3 Jun 2016 10:20:24 +0000 (12:20 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Jun 2016 10:20:24 +0000 (12:20 +0200)
Reported-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index acea6d8ff1f75b7ae3b20fc4bca9305a932b584e..c0a4c72a2906e3b5b686a6724a4621fbf9edb58c 100644 (file)
@@ -352,6 +352,10 @@ static char *table_to_string(struct cfdisk *cf, struct fdisk_table *tb)
        scols_table_enable_maxout(table, 1);
        scols_table_enable_nowrap(table, 1);
 
+#if !defined(HAVE_LIBNCURSESW) || !defined(HAVE_WIDECHAR)
+       scols_table_enable_ascii(table, 1);
+#endif
+
        /* headers */
        for (i = 0; i < cf->nfields; i++) {
                int fl = 0;