Skip to content

Commit

Permalink
Suppress Wide character in print warnigns
Browse files Browse the repository at this point in the history
In the spelling test.
  • Loading branch information
theory committed Aug 1, 2023
1 parent d4de56c commit 44727b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xt/release/pod-spelling.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ use strict;
use Test::More;
use Test::Spelling;

# Suppress `Wide character in print`, which is emitted because
# Pod::Spelling::invalid_words_in sets no encoding $handle. Would go away with:
# open my $handle, '>:utf8', \$document;
$SIG{__WARN__} = sub { warn @_ if $_[0] !~ /^Wide character in print/ };

add_stopwords(<DATA>);
all_pod_files_spelling_ok();

Expand Down

0 comments on commit 44727b7

Please sign in to comment.