[Bug 1065329] Re: "column" silently discards lines after multi-byte character if LANG=C
Margarita Manterola
marga at google.com
Thu Oct 11 10:04:52 UTC 2012
** Package changed: ubuntu => bsdmainutils (Ubuntu)
--
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:
New
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