Skip to content

Commit

Permalink
t/loc_tools.pl: Swap lines
Browse files Browse the repository at this point in the history
It doesn't matter much, but some warnings might be output by doing the
'use locale' before turning off warnings.
  • Loading branch information
khwilliamson committed Apr 29, 2021
1 parent 4570032 commit eb43f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/loc_tools.pl
Expand Up @@ -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());
Expand Down

0 comments on commit eb43f9e

Please sign in to comment.