https://bugzilla.redhat.com/show_bug.cgi?id=1614708
Bug ID: 1614708 Summary: perldoc warns about binary data depending on TERM variable Product: Fedora Version: 28 Component: perl-Pod-Perldoc Assignee: ppisar@redhat.com Reporter: agalama@vodafonemail.de QA Contact: extras-qa@fedoraproject.org CC: perl-devel@lists.fedoraproject.org, ppisar@redhat.com
Description of problem:
Depending on the value of the TERM environment variable perldoc sometimes warns about binary content.
Version-Release number of selected component (if applicable):
perl-Pod-Perldoc-3.28-396.fc28.noarch Perldoc v3.28, under perl v5.026002 for linux
How reproducible:
Steps to Reproduce: 1. TERM=xterm perldoc Time::HiRes 2. TERM=linux perldoc Time::HiRes
Actual results: 1. Everything fine 2. "/tmp/6UsPxoKooT" may be a binary file. See it anyway?
The warning doesn't come up if I use "man" instead of "perldoc".
https://bugzilla.redhat.com/show_bug.cgi?id=1614708
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED URL| |https://rt.perl.org/Public/ | |Bug/Display.html?id=131762 See Also| |https://bugzilla.redhat.com | |/show_bug.cgi?id=1329059
--- Comment #1 from Petr Pisar ppisar@redhat.com --- This looks like an issue in Pod::Perldoc::ToTerm that adds ANSI sequences into the formatted output according to a current terminal:
E.g. the NAME section title changes:
-ESC[1mNAMEESC[0m +ESC[1mNAMEESC[m^O
This is saved into a file and a pager, "/usr/bin/less -isr" probably, is called on that file. In the TERM=linux case /usr/bin/less comes to a conclusion that the file is a binary garbage and asks for permission to spoil a terminal.
And indeed the TERM=linux output is not propebly displayed on Linux virtual terminal, an `O' letter hangs after the title. Whether it's a Pod::Perldoc::ToTerm or a terminal database bug I don't know.
There were numerous bug reports to Pod-Perldoc CPAN distribution, e.g.:
https://rt.cpan.org/Public/Bug/Display.html?id=120229 https://rt.cpan.org/Public/Bug/Display.html?id=88204
and that lead to Perl bug:
https://rt.perl.org/Public/Bug/Display.html?id=131762
that was resolved by patching Pod::Perldoc to use plain text output without ANSI formatting (i.e. Pod::Perldoc::ToText instead of Pod::Perldoc::ToTerm).
I'm keen to apply the Perl patch to Fedora <= 28. It will disappear the bold highlighting but it makes the text legible on all terminals.
https://bugzilla.redhat.com/show_bug.cgi?id=1614708
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Fixed In Version| |perl-Pod-Perldoc-3.28.01-1. | |fc28
https://bugzilla.redhat.com/show_bug.cgi?id=1614708
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- perl-Pod-Perldoc-3.28.01-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-9d12bea0f8
https://bugzilla.redhat.com/show_bug.cgi?id=1614708
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- perl-Pod-Perldoc-3.28.01-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-9d12bea0f8
https://bugzilla.redhat.com/show_bug.cgi?id=1614708
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- perl-Pod-Perldoc-3.28.01-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
perl-devel@lists.fedoraproject.org