Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wide character in print #17

Open
theory opened this issue Feb 20, 2023 · 0 comments
Open

Wide character in print #17

theory opened this issue Feb 20, 2023 · 0 comments

Comments

@theory
Copy link

theory commented Feb 20, 2023

The Sqitch spelling test emits warnings for multibyte characters, like this:

❯ prove -lr ./xt/release/pod-spelling.t
./xt/release/pod-spelling.t .. 1/109 Wide character in print at /Users/david/.plenv/versions/5.36.0/lib/perl5/site_perl/5.36.0/Pod/Spell.pm line 148.
./xt/release/pod-spelling.t .. 52/109 Wide character in print at /Users/david/.plenv/versions/5.36.0/lib/perl5/site_perl/5.36.0/Pod/Spell.pm line 148.
Wide character in print at /Users/david/.plenv/versions/5.36.0/lib/perl5/site_perl/5.36.0/Pod/Spell.pm line 148.
./xt/release/pod-spelling.t .. ok       
All tests successful.
Files=1, Tests=109,  1 wallclock secs ( 0.01 usr  0.00 sys +  1.07 cusr  0.35 csys =  1.43 CPU)
Result: PASS

Unlike the first attempt attempt to fix the issue in #10, these aren't failure, just warnings. I tried to make them go away by adding

use open ':std', ':encoding(UTF-8)';

To the test script, but the warnings persisted. Any other suggestions? Seems weird that the open pragma isn't changing the behavior of the open call here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant