diff options
author | Karl Williamson <khw@cpan.org> | 2017-07-14 13:56:44 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-07-14 14:54:09 -0600 |
commit | 9c8a6dc2b06f6e6fe87aaae5c0aeccc13551c2a4 (patch) | |
tree | af03d23b8aef888f80286cc91ddf0c8c3c571960 /lib | |
parent | 0c880285bc6c49738f19600d07f9c86398cb1f67 (diff) | |
download | perl-9c8a6dc2b06f6e6fe87aaae5c0aeccc13551c2a4.tar.gz |
Add debugging to locale handling
These debug statements have proven useful in the past tracking down
problems. I looked them over and kept the ones that I though might be
useful in the future. This includes extracting some code into a
static function so it can be called from more than one place.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/locale.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/locale.t b/lib/locale.t index da8d10ecb0..06fcfa6f77 100644 --- a/lib/locale.t +++ b/lib/locale.t @@ -755,7 +755,9 @@ debug "Scanning for locales...\n"; require POSIX; import POSIX ':locale_h'; my $categories = [ 'LC_CTYPE', 'LC_NUMERIC', 'LC_ALL' ]; +debug "Scanning for just compatible"; my @Locale = find_locales($categories); +debug "Scanning for even incompatible"; my @include_incompatible_locales = find_locales($categories, 'even incompatible locales'); @@ -783,6 +785,7 @@ if (@Locale < @include_incompatible_locales) { push @warnings, ($warning =~ s/\n/\n# /sgr); }; + debug "Trying incompatible $bad_locale"; my $ret = setlocale(&POSIX::LC_CTYPE, $bad_locale); my $message = "testing of locale '$bad_locale' is skipped"; |