diff --git a/t/loc_tools.pl b/t/loc_tools.pl index 35629865d452..38aa1772cb34 100644 --- a/t/loc_tools.pl +++ b/t/loc_tools.pl @@ -462,6 +462,10 @@ ($;$) _trylocale("C", \@categories, \@Locale, $allow_incompatible); _trylocale("POSIX", \@categories, \@Locale, $allow_incompatible); + if ($Config{d_has_C_UTF8} && $Config{d_has_C_UTF8} eq 'true') { + _trylocale("C.UTF-8", \@categories, \@Locale, $allow_incompatible); + } + # There's no point in looking at anything more if we know that # setlocale will return success on any garbage or non-garbage name. return sort @Locale