Skip to content

tests: ls: verify LC_COLLATE is honored when sorting filenames#269

Open
sylvestre wants to merge 1 commit into
coreutils:masterfrom
sylvestre:ls-collation-test
Open

tests: ls: verify LC_COLLATE is honored when sorting filenames#269
sylvestre wants to merge 1 commit into
coreutils:masterfrom
sylvestre:ls-collation-test

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor
  • tests/ls/sort-collation.sh: new test covering three locale scenarios (C, full UTF-8 locale via LC_ALL, and LC_COLLATE alone with LC_ALL unset).
  • tests/local.mk (all_tests): Add it.

This guards against regressions where ls sorts as if LC_COLLATE=C regardless of the locale category, as reported for uutils: uutils/coreutils#12474

* tests/ls/sort-collation.sh: new test covering three locale scenarios
(C, full UTF-8 locale via LC_ALL, and LC_COLLATE alone with LC_ALL
unset).
* tests/local.mk (all_tests): Add it.

This guards against regressions where ls sorts as if LC_COLLATE=C
regardless of the locale category, as reported for uutils:
uutils/coreutils#12474
@collinfunk

Copy link
Copy Markdown
Member

Thanks, but this patch feels a bit more simple to me. WDYT @pixelb?
0001-tests-sort-check-LC_ALL-and-LC_COLLATE.patch

@sylvestre

Copy link
Copy Markdown
Contributor Author

@collinfunk sounds good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants