We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6773db commit da43c74Copy full SHA for da43c74
t/loc_tools.pl
@@ -568,8 +568,10 @@ ($;$)
568
# Other subversive stuff.
569
delete local @ENV{qw(IFS CDPATH ENV BASH_ENV)};
570
571
- if (-x "/usr/bin/locale"
572
- && open(LOCALES, '-|', "/usr/bin/locale -a 2>/dev/null"))
+ my $locale_cmd = "/usr/bin/locale";
+ $locale_cmd = "/bin/locale" unless -x $locale_cmd;
573
+ if ( -x $locale_cmd
574
+ && open(LOCALES, '-|', "$locale_cmd -a 2>/dev/null"))
575
{
576
while (<LOCALES>) {
577
0 commit comments