From c0f02a8f5b164d72438168bce88328193ab39c34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Mon, 25 Mar 2024 18:27:13 +0000 Subject: [PATCH] tests: avoid false failure with partial locale info * tests/misc/numfmt.pl: Some systems with the fr_FR.UTF-8 locale installed, do not have a thousands grouping character defined. In this case we skip the locale tests which depend on a non empty grouping character. --- tests/misc/numfmt.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl index 0905a0cca5..7abcb39ce0 100755 --- a/tests/misc/numfmt.pl +++ b/tests/misc/numfmt.pl @@ -1018,6 +1018,11 @@ if ($locale ne 'C') or die "Can't fork command: $!"; $lg = ; close(LOC_GRP) || die "Failed to read locale grouping from printf"; + if (! defined $lg || $lg eq '') + { + warn "skipping locale grouping tests as no grouping character\n"; + $locale = 'C'; + } } my @Locale_Tests = -- 2.47.2