[Bug 1065329] Re: "column" silently discards lines after multi-byte character if LANG=C
Seb Bonnard
1065329 at bugs.launchpad.net
Mon Jan 25 12:12:24 UTC 2016
Hi,
I seems to be fixed on Ubuntu 14.10 (except for the return code which
should not be 0 here) :
$ unset LANG LANGUAGE $(echo ${!LC_*})
$ column foo
column: Invalid or incomplete multibyte or wide character
a b c d
$ echo $?
0
$ LC_CTYPE=en_US.UTF-8 column foo
a b c d é f g h i j
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.
https://bugs.launchpad.net/bugs/1065329
Title:
"column" silently discards lines after multi-byte character if LANG=C
Status in bsdmainutils package in Ubuntu:
Confirmed
Bug description:
Tested on Ubuntu 10.04 and 12.04.
Actions:
# unset localization variables
$ unset LANG LANGUAGE $(echo ${!LC_*})
$ env | grep -e LANG -e LC_ # confirm that nothing is set
# create input file
$ echo -e a b c d '\0303\0251' f g h i j | xargs -n1 > foo
$ cat foo
a
b
c
d
é
f
g
h
i
j
# run /usr/bin/column
$ column foo
a b c d
$ echo $?
0
Expected results:
All 10 lines of the input file are printed or an error is
reported.
Actual resuts:
Only 4 lines were printed and no error was reported.
Additional information:
If LC_CTYPE is set to en_US.UTF-8 the command is successful.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/1065329/+subscriptions
More information about the foundations-bugs
mailing list