From dbcaa9d49103108d43bf8b00dfc66041f62fba73 Mon Sep 17 00:00:00 2001 From: pavel kuliaka <73388735+pavelkuliaka@users.noreply.github.com> Date: Sat, 18 Jul 2026 11:03:18 +0300 Subject: [PATCH] shtest: skip locale test if date lacks locale support (#3583) --- tests/shtest | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/shtest b/tests/shtest index aca82790..47741390 100755 --- a/tests/shtest +++ b/tests/shtest @@ -711,6 +711,8 @@ $locales EOF if [ -z "$l" ]; then echo "WARNING: Not testing localization" + elif [ "$(LC_ALL=C date +%a%b)" = "$(LC_ALL=$l date +%a%b)" ]; then + echo "WARNING: Date does not produce locale-dependent output for $l, skipping localization test" else dt1=$(LC_ALL=$l date +'%a %d %b %Y at %H:%M:%S') dt2=$(LC_ALL=$l $JQ -nr 'now | strflocaltime("%a %d %b %Y at %H:%M:%S")')