]> err.no Git - util-linux/commit
col: getwchar() errors shouldn't be hidden
authorKarel Zak <kzak@redhat.com>
Tue, 30 Jan 2007 12:18:51 +0000 (13:18 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 30 Jan 2007 12:52:48 +0000 (13:52 +0100)
commite9ce5ccc90c63cb1c499ad01800e638ece23f8b0
tree251163add0f5966824a79409005502cb1c70e328
parent06b04b23cdff2f038e4f341a1247c51b5261f332
col: getwchar() errors shouldn't be hidden

The col truncates output when multibyte errors is detected, but the problem is
not reported to stderr and return code is still same like for successful exit.
This stupid behaviour is fixed by this patch.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/commands.sh.in
tests/expected/ts-col-multibyte [new file with mode: 0644]
tests/functions.sh
tests/input/ts-col-multibyte [new file with mode: 0644]
tests/ts-col-multibyte [new file with mode: 0755]
text-utils/col.c