diff --git a/t/re/charset.t b/t/re/charset.t index c95c276bd4e9..0ad498557ca7 100644 --- a/t/re/charset.t +++ b/t/re/charset.t @@ -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 {