Skip to content

Commit

Permalink
t/loc_tools.pl: Don't allow commas in locale names
Browse files Browse the repository at this point in the history
This was a problem in some buggy Windows versions.  This addition keeps
locales with this bug from being tested.
  • Loading branch information
khwilliamson committed Apr 20, 2021
1 parent aa2f05a commit c8a2d99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/loc_tools.pl
Expand Up @@ -187,6 +187,11 @@ ($$$$)
return;
}

# Commas in locale names are bad in Windows, and there is a bug in
# some versions where setlocale() turns a legal input locale name into
# an illegal return value, which it can't later parse.
return if $result =~ /,/;

return unless $plays_well || $allow_incompatible;
}

Expand Down

0 comments on commit c8a2d99

Please sign in to comment.