From da43c74c002902e992c64ca4d306f64f376d7a32 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 4 Jun 2025 18:22:11 -0600 Subject: [PATCH] loc_tools: Look also for locale(1) in /bin That's where it is on z/OS --- t/loc_tools.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/loc_tools.pl b/t/loc_tools.pl index e518b820b4..f7d3455f72 100644 --- a/t/loc_tools.pl +++ b/t/loc_tools.pl @@ -568,8 +568,10 @@ sub find_locales ($;$) { # Other subversive stuff. delete local @ENV{qw(IFS CDPATH ENV BASH_ENV)}; - if (-x "/usr/bin/locale" - && open(LOCALES, '-|', "/usr/bin/locale -a 2>/dev/null")) + my $locale_cmd = "/usr/bin/locale"; + $locale_cmd = "/bin/locale" unless -x $locale_cmd; + if ( -x $locale_cmd + && open(LOCALES, '-|', "$locale_cmd -a 2>/dev/null")) { while () {