diff options
| author | Karel Zak <kzak@redhat.com> | 2016-06-03 12:20:24 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2016-06-03 12:20:24 +0200 |
| commit | 9907a95a7dafd01dd85a44abf8405096a76ae4e5 (patch) | |
| tree | a9d0c5eac8754dbb3807045bc81e201c4445ccb8 /disk-utils/cfdisk.c | |
| parent | 4a423fb963d4cd87e9e5c75c77e1ac5d1ea2417f (diff) | |
| download | util-linux-9907a95a7dafd01dd85a44abf8405096a76ae4e5.tar.gz | |
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 acea6d8ff1..c0a4c72a29 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; |
