From: "b.cama at kerlink dot fr" <sourceware-bugzilla@sourceware.org>
To: libc-locales@sourceware.org
Subject: [Bug localedata/23421] Strange collation rules for A and space with UTF-8 locale when other characters appended
Date: Wed, 18 Jul 2018 08:52:00 -0000 [thread overview]
Message-ID: <bug-23421-716-obv7HU6eNB@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-23421-716@http.sourceware.org/bugzilla/>
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.
prev parent reply other threads:[~2018-07-18 8:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-17 9:09 [Bug localedata/23421] New: " b.cama at kerlink dot fr
2018-07-17 9:23 ` [Bug localedata/23421] " b.cama at kerlink dot fr
2018-07-17 15:21 ` carlos at redhat dot com
2018-07-17 16:42 ` b.cama at kerlink dot fr
2018-07-17 16:54 ` carlos at redhat dot com
2018-07-18 8:10 ` b.cama at kerlink dot fr
2018-07-18 8:36 ` schwab@linux-m68k.org
2018-07-18 8:52 ` b.cama at kerlink dot fr [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-23421-716-obv7HU6eNB@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=libc-locales@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).