*** This bug is a duplicate of bug 2152822 ***
    https://bugs.launchpad.net/bugs/2152822

Public bug reported:

With LC_COLLATE=de_DE.UTF-8 I try to sort two files & pass them
through `comm`. This works fine with gnu-coreutils but fails with
rust-coreutils as with the latter `sort` & `comm` disagree on the
order of "-" vs "_" (I think).

1. How to reproduce:

cat > src1 <<EOF
test-pluto-theme.jar
test_auth_org_mapper-kc26.5.0_v0.8.2.jar
test_connect_proxy-kc26.5.0_v0.1.0.jar
EOF

cat > src2 <<EOF
test-pluto-theme.jar
test_auth_org_mapper-kc26.5.0_v0.8.2.jar
EOF

export LC_COLLATE=de_DE.UTF8

/usr/lib/cargo/bin/coreutils/sort < src1 > src1.rust
/usr/lib/cargo/bin/coreutils/sort < src2 > src2.rust

/usr/lib/cargo/bin/coreutils/comm -23 src1.rust src2.rust


2. Rust sort/comm work fine with LC_COLLATE=C.UTF-8:

export LC_COLLATE=C.UTF8

/usr/lib/cargo/bin/coreutils/sort < src1 > src1.rust
/usr/lib/cargo/bin/coreutils/sort < src2 > src2.rust

/usr/lib/cargo/bin/coreutils/comm -23 src1.rust src2.rust


3. GNU sort/comm work fine with LC_COLLATE=de_DE.UTF-8:


export LC_COLLATE=de_DE.UTF8

/usr/bin/gnusort < src1 > src1.gnu
/usr/bin/gnusort < src2 > src2.gnu

/usr/bin/gnucomm -23 src1.gnu src2.gnu

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2158983

Title:
  rust-coreutils: comm & sort disagree on sort order with
  LC_COLLATE=de_DE.UTF-8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2158983/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to