tag 500210 patch fixed-upstream thanks On Thu, Sep 25, 2008 at 11:37:21PM +0200, Gerfried Fuchs wrote: > Package: perl-doc > Version: 5.10.0-14 > Severity: normal
> When running perldoc perlrun I have strange characters in the output of > it, and I managed to pin it down to a short POD snippet like this: > =head1 SYNOPSIS > > B<perl> S<[ B<-sTtUWX> ]> Thanks for noticing this. It's fixed in podlators-2.1.3: * lib/Pod/Man.pm (format_text): Stop remapping the code point for non-breaking space. This should not be necessary and was wrong when the string from Pod::Simple was a character string and not a byte string. It was papering over a bug in setting the encoding of an input POD file. Patch from upstream git attached. I'd certainly like to fix this for Lenny, we'll see what the release team thinks. -- Niko Tyni [EMAIL PROTECTED]
diff --git a/ChangeLog b/ChangeLog index f0c727e..25850bc 100644 diff --git a/lib/Pod/Man.pm b/lib/Pod/Man.pm index 38c4e3d..203ef4a 100644 --- a/lib/Pod/Man.pm +++ b/lib/Pod/Man.pm @@ -362,13 +362,6 @@ sub format_text { $text =~ s/([^\x00-\x7F])/$ESCAPES{ord ($1)} || "X"/eg; } - # For Unicode output, unconditionally remap ISO 8859-1 non-breaking spaces - # to the correct code point. This is really a bug in Pod::Simple to be - # embedding ISO 8859-1 characters in the output stream that we see. - if ($$self{utf8} && ASCII) { - $text =~ s/\xA0/\xC2\xA0/g; - } - # Ensure that *roff doesn't convert literal quotes to UTF-8 single quotes, # but don't mess up our accept escapes. if ($literal) {