mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 08:38:23 +00:00
loc_tools: Look also for locale(1) in /bin
That's where it is on z/OS
This commit is contained in:
parent
a6773db0d9
commit
da43c74c00
@ -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 (<LOCALES>) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user