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
Perl warnings may generate "Wide character in print" warnings #14747
Comments
From @wolfsageCreated by wolfsage@gmail.comPerl's own warnings will generate utf8 warnings. This seems very minor, mhorsfall@dumai:~$ perl -Mutf8 -e 'my $x = 5+3*ʂʂ;' Perl Info
|
From @jkeenanOn Wed Jun 10 08:17:49 2015, alh wrote:
Confirmed for 5.20.1, 5.22.0 and blead (e67e8a4).
-- |
The RT System itself - Status changed from 'new' to 'open' |
I think it's possible that the wide characters could come out as mojibake if the terminal encoding isn't set to expect UTF-8. Then the Wide character warning serves a useful purpose, explaining why. |
@wolfsage wrote in 2015:
@khwilliamson wrote:
Other than noting this anomaly in documentation, is there anything we can do? |
I don't think a fully correct solution is possible here. The warning message is generated from source code, which may have been decoded from UTF-8 bytes. But where it's going may expect UTF-8 bytes, it may be a handle that expects characters and has an encoding layer, it may not even be a handle at all (e.g. with a |
Migrated from rt.perl.org#125379 (status was 'open')
Searchable as RT125379$
The text was updated successfully, but these errors were encountered: