From d6fc91f37a033b1cf6325dc6b047f2a633bc16f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Fri, 7 Nov 2025 20:49:25 +0000
Subject: [PATCH] tests: add tests for locale ordering
* tests/sort/sort-locale.sh: Check sort,ls have the same (non C) order.
* tests/local.mk: Reference the new test.
---
tests/local.mk | 1 +
tests/sort/sort-locale.sh | 51 +++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
create mode 100755 tests/sort/sort-locale.sh
diff --git a/tests/local.mk b/tests/local.mk
index 53fc53e006..73060f10c6 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -413,6 +413,7 @@ all_tests = \
tests/sort/sort-files0-from.pl \
tests/sort/sort-float.sh \
tests/sort/sort-h-thousands-sep.sh \
+ tests/sort/sort-locale.sh \
tests/sort/sort-merge.pl \
tests/sort/sort-merge-fdlimit.sh \
tests/sort/sort-month.sh \
diff --git a/tests/sort/sort-locale.sh b/tests/sort/sort-locale.sh
new file mode 100755
index 0000000000..4f18e3e28f
--- /dev/null
+++ b/tests/sort/sort-locale.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Test sort locale ordering
+
+# Copyright (C) 2025 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see