Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 72125 - perldoc prints wrong characters in UTF-8 environment
Summary: perldoc prints wrong characters in UTF-8 environment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: perl
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chip Turner
QA Contact: David Lawrence
URL:
Whiteboard:
: 72630 (view as bug list)
Depends On:
Blocks: 67218 79579 CambridgeTarget
TreeView+ depends on / blocked
 
Reported: 2002-08-21 10:01 UTC by Harald Hoyer
Modified: 2007-04-18 16:45 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-30 13:24:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Harald Hoyer 2002-08-21 10:01:15 UTC
SSIA

Comment 1 Chip Turner 2002-08-22 17:59:42 UTC
what should it print instead?  I'm no *roff expert.  if you can suggest what it
should be doing, I can fix it, but not without knowing the exact problem.

Comment 2 Harald Hoyer 2002-08-23 11:18:26 UTC
well, e.g.
$ perldoc open
gives me an ugly formatted screen in a UTF-8 capable terminal, where I can see
the escape sequences...

Comment 3 Gordon Messmer 2002-08-25 17:48:23 UTC
This may be related to bug 71913.  Perhaps the problem lies in the "less"
package?  I first saw this in (null), someone should see what's changed since
the second beta.


Comment 4 Chip Turner 2002-08-29 18:18:02 UTC
the issue is inside of groff, it seems.  florian is looking into it.

Comment 5 Florian La Roche 2002-09-01 07:38:59 UTC
Either set an option to not use the new ansi escaping in groff or add an
option to the pager to display them correctly like done in man ("less -isr")

Florian La Roche


Comment 6 Chip Turner 2002-09-01 22:02:28 UTC
*** Bug 72630 has been marked as a duplicate of this bug. ***

Comment 7 Chip Turner 2002-09-03 00:49:39 UTC
fixed in rawhide, less -isr now used as default perl pager

Comment 8 Wade Minter 2002-09-05 17:58:59 UTC
I just downloaded -51 from rawhide, and the problem is still there.  I've done
everything except reboot the box.  

Curiously enough, if I run "less -isr /tmp/filename" while perldoc is open, I
see the correct output.

Do I need to get another package in addition to perl-5.8.0-51.i386.rpm, or is
this not completely fixed?

Comment 9 Chip Turner 2002-09-05 20:32:43 UTC
this is fixed in our latest internal build, -55, but hasn't made it to rawhide
yet.  will investigate why it isn't there.

Comment 10 Rob McMillin 2002-12-30 14:50:41 UTC
Re comment 3, I would go so far as to say it's in fact a duplicate of bug 71913.

Comment 11 Scott R. Godin 2003-01-21 22:49:17 UTC
line 584 in perldoc: 

changed
    my $cmd = catfile($bindir, $pod2man) . " --lax $file | $opt_n -man";

to
    my $cmd = catfile($bindir, $pod2man) . " --lax $file | $opt_n -man -c";

problem with escape sequences being viewable in less went away.

(by the way my env var for LESS = "CegMS" )

don't know if this is THE solution, but it's a workable one. :-)


Comment 12 Chip Turner 2003-02-20 17:43:22 UTC
can anyone confirm if they are still having difficulties with the latest
rawhide?  I'm not seeing this problem any longer

Comment 13 Harald Hoyer 2003-10-30 13:24:41 UTC
seems to be fixed :)


Note You need to log in before you can comment on or make changes to this bug.