From d901a593323f3401b01aae348c4c3b748ca92e36 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 27 Feb 2025 10:57:19 -0800 Subject: [PATCH] Fix fns-tests-collate-strings failure with musl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * test/src/fns-tests.el (fns-tests-collate-strings): Don’t assume "en_XY.UTF-8", or any particular string, is an invalid locale, as they all seem to be valid in musl. Instead, simply test that a non-string is invalid. (Bug#76550) (cherry picked from commit 62b3d3136fae8830d63f69143b09e99b5173c537) --- test/src/fns-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index ac29eb97444..e4bb42ff8ae 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el @@ -277,7 +277,7 @@ (should (string-collate-equalp "xyzzy" "XYZZY" nil t)) ;; Locale must be valid. - (should-error (string-collate-equalp "xyzzy" "xyzzy" "en_XY.UTF-8"))) + (should-error (string-collate-equalp "xyzzy" "xyzzy" 'not-a-locale))) ;; There must be a check for valid codepoints. (Check not implemented yet) ; (should-error -- 2.39.5