On Thu, Jul 11, 2024 at 8:51 AM Jiri Slaby <jslaby@suse.cz> wrote:
On 11. 07. 24, 7:41, Felix Miata wrote:
Jiri Slaby composed on 2024-07-11 06:44 (UTC+0200):
Felix Miata wrote:
TW is doing like 15.6, both since recent months. How can I get results like 15.5 again? Does this look like bug report in need?
no, sort sorts correctly from the beginning of the line (those "i", "i+", etc.). Use: sort -f '|' -k 2 instead.
Did you miss the fact that i-space-space is sorting before space-l-space in 15.6? Why is that happening?
OK, do you use the same locale?
No, it is not the locale (at least, not in any obvious way). andrei@tumbleweed:~> grep -E 'PRETTY|VERSION_ID' /etc/os-release VERSION_ID="20240609" PRETTY_NAME="openSUSE Tumbleweed" andrei@tumbleweed:~> locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= andrei@tumbleweed:~> cat /tmp/1 | b | d | o i+ | u | u i+ | u i+ | u andrei@tumbleweed:~> sort /tmp/1 | b | d i+ | u i+ | u i+ | u | o | u but andrei@tumbleweed:~> cat /tmp/2 | | | i+ | | i+ | i+ | andrei@tumbleweed:~> sort /tmp/2 | | | | i+ | i+ | i+ | andrei@tumbleweed:~> No hidden UNICODE characters, everything is plain ASCII, there are spaces in the beginning of lines as they should be. It really looks like sort somehow skips non-alphanumeric characters when performing comparison.