aymara / aymara/lima

Ensure to use LC_COLLATE=C with sort

Open
#62 0 comments 0 reactions 1 assignee Claimed by @kleag View on GitHub
bug confirmed
Dominant language
C++
Stars
119
Forks
20
PR merge metrics
No merged PRs in 30d

Description

As found by @romaricb , bash commands `sort` and `uniq` used in several resource building scripts can merge lines that are different if containing Unicode characters not defined in the current locale collation table (see [this stackexchange question](https://unix.stackexchange.com/questions/17198/where-has-my-uniq-or-sort-u-line-gone-with-some-unicode-characters)). This can be avoided by setting `LC_COLLATE=C` to avoid any collation.

We must ensure `LC_COLLATE=C` is used anywhere `sort -u` or [uniq](url) are used in our scripts.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.