diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-05 00:15:44 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-05 00:15:48 +0100 |
commit | 61f92b326da0efea1cf4d3c263ef0e0b7cacfc25 (patch) | |
tree | f186a790a765a894c20ec0f2bae9126df067dac1 /tests/lib-core | |
parent | 80489b3ec6643c06d525ec39a7d72135286ba62c (diff) |
test suite: Always pass LC_COLLATE=C to sort(1).
Specifically, by replacing every invocation of sort with the new
function t-sort. The one case where we already took care of this, we
change LC_ALL to LC_COLLATE, which should be sufficient.
Closes:#903006.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib-core')
-rw-r--r-- | tests/lib-core | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib-core b/tests/lib-core index e2b6c06..724c8ac 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -40,3 +40,7 @@ t-filter-out-git-hyphen-dir () { path="${path%:}" PATH="$path" } + +t-sort () { + LC_COLLATE=C sort "$@" +} |