Skip to content

fix: override LANG and LC_ALL to ensure stable sort order

Currently, we set LC_COLLATE to a neutral locale in order to ensure a consistent and deterministic order when generating the environment variables list.

However, a particular runtime environments might have LC_ALL set which would override what has been set via the LC_COLLATE as it has higher precedence.

Thus, set both LANG and LC_ALL to a neutral locale, and ensure that the sort order wouldn't be affected by the runtime environment localisation.

Signed-off-by: Krzysztof Wilczyński kwilczynski@gitlab.com

Merge request reports

Loading