From eb43f9ebd23c1270185d2146ffb507eeb594c146 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 12 Apr 2021 05:34:25 -0600 Subject: [PATCH] t/loc_tools.pl: Swap lines It doesn't matter much, but some warnings might be output by doing the 'use locale' before turning off warnings. --- t/loc_tools.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/loc_tools.pl b/t/loc_tools.pl index 94b56661b239..aee321ed7a6b 100644 --- a/t/loc_tools.pl +++ b/t/loc_tools.pl @@ -578,8 +578,8 @@ ($) my $locale = shift; print STDERR "# ", __FILE__, ": ", __LINE__, ": ", "is_locale_utf8: $locale\n" if $debug; - use locale; no warnings 'locale'; # We may be trying out a weird locale + use locale; print STDERR "# ", __FILE__, ": ", __LINE__, ": ", "is_locale_utf8: $locale\n" if $debug; my $save_locale = setlocale(&POSIX::LC_CTYPE());