lsd-rs / lsd-rs/lsd

Does not honor LC_COLLATE or LANG

Open
#606 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

- os: Linux 5.14.21-2-MANJARO SMP PREEMPT Sun Nov 21 22:43:47 UTC 2021 x86_64 GNU/Linux
- `lsd --version`: 0.20.1
- `echo $TERM`: xterm-256color
- `echo $LS_COLORS`:

## Expected behavior
When LC_COLLATE=C or LANG=C, filenames should be sorted in ASCII order. (upper before lowercase filenames)

## Actual behavior
When LC_COLLATE=C, or LANG=C, filenames are still sorted using en_US.UTF-8 where case makes no difference.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. First reproduce the issue on Linux with LC_COLLATE=C and LANG=C, then trace the filename-sorting path; done means filenames sort in ASCII order, with uppercase names before lowercase names.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.