Skip to content

SORT is not working for non-latin letters(Korean, Chinese, etc) on macOS by Homebrew version. #1652

@nemonein

Description

@nemonein

Environment details (Put x in the checkbox along with the information)

  • Operating System: macOS Ventura 13.3.1 (MacMini M2)
  • Desktop Environment:
  • Terminal Emulator: iTerm2
  • Shell: zsh
  • Custom desktop opener (if applicable):
  • Program options used: -d
  • Configuration options set:
  • Plugins are installed
  • Issue exists on nnn master
  • nnn version : 4.8

Exact steps to reproduce the issue

There was an issue for this, #1145, and it is closed, but not solved, so I open this.
On Linux(Archlinux, Ubuntu), there is no problem, only on macOS(by Homebrew) has this issue.
Korean letters are not ordered well.

Please take a look at the screen shots.

This one is on Linux(ssh to Ubuntu server from macOS).
image
And on macOS.
image
I add numbers at the end on Korean lettered files for your easy reading, and it should be sorted by the numbers.
This is the correct order.

가-01.txt
가나-02.txt
개구리-03.jpg
나-04.txt
다-05.txt
대추방울토마토-06.txt
발볼-발폭-07.pdf
방울토마토-08.txt
스타워즈 공식 연대기-09.pdf
차키-10.txt
토마토-11.txt
파-12.txt
하-13.txt

However, on macOS,

가-01.txt
나-04.txt
다-05.txt
파-12.txt
하-13.txt
가나-02.txt
차키-10.txt
개구리-03.jpg
토마토-11.txt
발볼-발폭-07.pdf
스타워즈 공식 연대기-09.pdf
방울토마토-08.txt
대추방울토마토-06.txt

I'm not sure it's your problem or Homebrew's.
Anyway, thank you for reading.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions