[Bug localedata/23421] Strange collation rules for A and space with UTF-8 locale when other characters appended

b.cama at kerlink dot fr sourceware-bugzilla@sourceware.org
Wed Jul 18 08:52:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23421

--- Comment #7 from Benjamin Cama <b.cama at kerlink dot fr> ---
> Lexicographical sorting has been the default for a long time already.

Well, this is not really about lexicographical ordering but rather the skipping
of spaces that looks strange.

> If you want to sort a column then only sort _that_ column, not the whole line.
>
> $ printf "A\tA\nAA\tA\nA\tD\n" | sort -k1,1

I knew the "-k 1" notation, but it “does not work” in my case, because it takes
into account the rest of the line; I did not know that you could specify an
ending like "-k 1,1", which works, thanks for the tip!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libc-locales mailing list