[Bug 1065329] [NEW] "column" silently discards lines after multi-byte character if LANG=C

Launchpad Bug Tracker 1065329 at bugs.launchpad.net
Thu Oct 11 10:04:54 UTC 2012


You have been subscribed to a public bug:

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.

** Affects: bsdmainutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
"column" silently discards lines after multi-byte character if LANG=C
https://bugs.launchpad.net/bugs/1065329
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.




More information about the foundations-bugs mailing list