diff options
author | Karel Zak | 2016-06-03 12:20:24 +0200 |
---|---|---|
committer | Karel Zak | 2016-06-03 12:20:24 +0200 |
commit | 9907a95a7dafd01dd85a44abf8405096a76ae4e5 (patch) | |
tree | a9d0c5eac8754dbb3807045bc81e201c4445ccb8 /disk-utils/cfdisk.c | |
parent | lib/mbsalign: fix for non-widechar (diff) | |
download | kernel-qcow2-util-linux-9907a95a7dafd01dd85a44abf8405096a76ae4e5.tar.gz kernel-qcow2-util-linux-9907a95a7dafd01dd85a44abf8405096a76ae4e5.tar.xz kernel-qcow2-util-linux-9907a95a7dafd01dd85a44abf8405096a76ae4e5.zip |
cfdisk: use libsmartcols ASCII for non-widechar environment
Reported-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r-- | disk-utils/cfdisk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index acea6d8ff..c0a4c72a2 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -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; |