Skip to content

Commit

Permalink
t/re/charset: spell the locale when setlocale() fails
Browse files Browse the repository at this point in the history
Closes Perl#21805
  • Loading branch information
dilyanpalauzov authored and khwilliamson committed Jan 13, 2024
1 parent 679f9b8 commit f1902d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/re/charset.t
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ foreach my $charset (@charsets) {
? "C"
: $utf8_locale
);
die "Couldn't change locale" unless $locale;
die "Couldn't change to locale " . (($charset eq 'l') ? "C" : $utf8_locale) unless $locale;
$charset_display = $charset_mod . " ($locale)";
}
else {
Expand Down

0 comments on commit f1902d2

Please sign in to comment.