t/loc_tools.pl: C.UTF-8 is a likely locale
authorKarl Williamson <khw@cpan.org>
Wed, 6 Feb 2019 18:51:05 +0000 (11:51 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 6 Feb 2019 18:59:42 +0000 (11:59 -0700)
When looking for locales on a system, try this one which seems to be
getting to be available widely.

t/loc_tools.pl

index 85fb099..4b80ed5 100644 (file)
@@ -337,6 +337,7 @@ sub find_locales ($;$) {
     my @Locale;
     _trylocale("C", $categories, \@Locale, $allow_incompatible);
     _trylocale("POSIX", $categories, \@Locale, $allow_incompatible);
+    _trylocale("C.UTF-8", $categories, \@Locale, $allow_incompatible);
     foreach (1..16) {
         _trylocale("ISO8859-$_", $categories, \@Locale, $allow_incompatible);
         _trylocale("iso8859$_", $categories, \@Locale, $allow_incompatible);