Bug 147568 - sort -t mb handling broken (affects LSB conformance
Summary: sort -t mb handling broken (affects LSB conformance
Keywords:
Status: CLOSED DUPLICATE of bug 147567
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: coreutils
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-09 12:57 UTC by Jakub Jelinek
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-09 12:58:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to fix the bug (8.99 KB, patch)
2005-02-09 12:57 UTC, Jakub Jelinek
no flags Details | Diff

Description Jakub Jelinek 2005-02-09 12:57:26 UTC
sort -t handling with MB_CUR_MAX > 1 is very broken in several ways.
One problem shows up e.g. in LSB 1.3 testsuite on big endian platforms, where
10|567 /tset/LI18NUX2K.L1/utils/sort/sort 18:32:15|TC Start, scenario ref 571-0
520|567 8 23535 1 1|* When -t option is specified, verify this utility use a character as a field separator even if the character is a multibyte character.
520|567 8 23535 1 2|
520|567 8 23535 1 3|Can't handle field separator written in a multibyte chaaracter.
220|567 8 1 18:32:21|FAIL
520|567 24 23535 1 1|* When -c and -t option are specified, verify this utility use a character as a field separator even if the character is a multibyte character.
520|567 24 23535 1 2|
520|567 24 23535 1 3|Can't handle field separator written in a multibyte chaaracter.
220|567 24 1 18:32:29|FAIL
520|567 40 23535 1 1|* When -m and -t option are specified, verify this utility use a character as a field separator even if the character is a multibyte character.
520|567 40 23535 1 2|
520|567 40 23535 1 3|Can't handle field separator written in a multibyte chaaracter.
220|567 40 1 18:32:36|FAIL

But as shown in the attached testcase, it is not just big endian platforms that
have -t broken.

I wonder why this was missed during RHEL3 LSB testing.

Comment 1 Jakub Jelinek 2005-02-09 12:57:26 UTC
Created attachment 110865 [details]
Patch to fix the bug

Comment 2 Jakub Jelinek 2005-02-09 12:58:27 UTC
Oops, Ctrl-R dangerous, sorry.

*** This bug has been marked as a duplicate of 147567 ***


Note You need to log in before you can comment on or make changes to this bug.