]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: don't calculate with encoding on scols_table_enable_noencoding()
authorKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2020 10:24:33 +0000 (12:24 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2020 10:24:33 +0000 (12:24 +0200)
commit2292d0baf950e87ab4f4b8019fbf822cc15da01d
tree6e3bd30ac5f743aa3af12496ac941b232c2473e2
parent0957fdca6ac5b41fa95f4a08d06f402e53d7e324
libsmartcols: don't calculate with encoding on scols_table_enable_noencoding()

Old:
$ echo -e "$(tput smul)A$(tput rmul) B\nC D" | column --table
A  B
C                 D

Fixed:
$ echo -e "$(tput smul)A$(tput rmul) B\nC D" | ./column --table
A  B
C  D

Addresses: https://github.com/karelzak/util-linux/issues/1011
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/buffer.c
libsmartcols/src/calculate.c
libsmartcols/src/column.c
libsmartcols/src/print.c