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
perlpod not reading utf-8 on input (even when told to) #13396
Comments
From perl-diddler@tlinx.orgCreated by perl-diddler@tlinx.orgNote: my perldoc version is:
I was looking at output of pod documentation hexdump shows it encoded as 0xc2 followed by 0xb9. But perldoc ---Example--- =encoding utf-8 =head1 EXAMPLE This is a test¹. ¹-a Perldoc test, that is.
EXAMPLE ¹-a Perldoc test, that is. perl v5.16.2 2013-11-03 x(3) Note the utf-8 is mangled in both places. However, note, even w/o my use utf8, and encoding statements, Surely perldoc (and perl) could do at least as well:
It's too bad perl has to get file encodings wrong when so many Perl Info
|
From nbtrap@nbtrap.comLinda Walsh (via RT) <perlbug-followup@perl.org> writes:
Shouldn't that be "=encoding utf8"?
"file" is designed to get it right. Perl, on the other hand, doesn't |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Mon, Nov 4, 2013 at 11:58 AM, Nathan Trapuzzano <nbtrap@nbtrap.com>wrote:
No. The argument is the name of an encoding. (Changing it to "utf8" has no |
From @iabyn(I originally sent this via email to p5p yesterday, but it hasn't appeared, so I'm resending via the RT web interface) The double encoding is occurring due to your PERL5OPT setting: $ perldoc -T /tmp/U.pm | hexdump -c | grep 't e' $ PERL5OPT='-CSA' perldoc -T /tmp/U.pm | hexdump -c | grep 't e' Passing -CSA to a perl program which is already Unicode-aware is likely to |
From @ikegamiOn Tue, Nov 5, 2013 at 7:47 AM, Dave Mitchell via RT <
Sounds like a missing :raw. More specifically, it sounds like it encodes |
From perl-diddler@tlinx.orgOn Tue Nov 05 06:57:00 2013, ikegami@adaelis.com wrote:
If pod isn't using the perlio layers, that would make sense. However, regarding it being the ENV -CSA, I would It *could* be the case that declaring the source to be UTF-8 via "use utf8", and later |
From perl-diddler@tlinx.orgAs an update to this. If the pod text is displayed as a web page, using for rendering, and firefox as a client, the UTF-8 chars display correctly! So whatever Mojo does, perldoc should go forth and do likewise? (the perl server above was started with the same ENV settings)... |
I believe this is fixed; please try it again. |
Migrated from rt.perl.org#120451 (status was 'open')
Searchable as RT120451$
The text was updated successfully, but these errors were encountered: