Bug#492037: incorrect behaviour of perldoc with UTF-8 texts
found 492037 5.10.0-16 thanks On Thu, Sep 04, 2008 at 10:33:22PM +0300, Niko Tyni wrote: On Sun, Aug 17, 2008 at 09:15:15AM +0300, Niko Tyni wrote: On Wed, Jul 23, 2008 at 04:10:58PM +0400, Dmitry E. Oboukhov wrote: Package: perl Version: 5.10.0-10 Tags: l10n Severity: important In attache You can found pod with russian symbols in utf-8 charset. This file is showed incorrectly: X1 perldoc actually runs pod2man in the background, so this is very related to #480997. I'm looking for a way to get this fixed for Lenny, either with the separate podlators-perl package (currently only in sid) or by patching Pod::Man. A workaround for now is the perldoc '-t' option. It's looking like we're going to have a separate podlators-perl package for Lenny, so we need to detect if pod2man actually supports '--utf8̈́'. I'm considering the attached patch, which I just sent upstream for comments as [rt.cpan.org #39000]. Hi Dmitry, the patch was included in 5.10.0-14, but I decided to revert it in 5.10.0-16 because 'pod2man --utf8' is too experimental to get run by default in Lenny. I'm hoping Pod::Perldoc acquires an interface for turning '--utf8' on optionally in the future. A workaround for now is to do something like % pod2man --utf8 ru.pod | env LANG=ru_RU man -l - Reopening this bug. -- Niko Tyni [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#492037: incorrect behaviour of perldoc with UTF-8 texts
tag 492037 patch forwarded 492037 http://rt.cpan.org/Ticket/Display.html?id=39000 thanks On Sun, Aug 17, 2008 at 09:15:15AM +0300, Niko Tyni wrote: On Wed, Jul 23, 2008 at 04:10:58PM +0400, Dmitry E. Oboukhov wrote: Package: perl Version: 5.10.0-10 Tags: l10n Severity: important In attache You can found pod with russian symbols in utf-8 charset. This file is showed incorrectly: X1 perldoc actually runs pod2man in the background, so this is very related to #480997. I'm looking for a way to get this fixed for Lenny, either with the separate podlators-perl package (currently only in sid) or by patching Pod::Man. A workaround for now is the perldoc '-t' option. It's looking like we're going to have a separate podlators-perl package for Lenny, so we need to detect if pod2man actually supports '--utf8̈́'. I'm considering the attached patch, which I just sent upstream for comments as [rt.cpan.org #39000]. -- Niko Tyni [EMAIL PROTECTED] Make /usr/bin/perldoc invoke pod2man with the --utf8 option if it detects a new enough Pod::Man version. (Closes: #492037) diff --git a/lib/Pod/Perldoc/ToMan.pm b/lib/Pod/Perldoc/ToMan.pm index 4319122..f697e5c 100644 --- a/lib/Pod/Perldoc/ToMan.pm +++ b/lib/Pod/Perldoc/ToMan.pm @@ -60,6 +60,10 @@ sub parse_from_file { unless -e $pod2man; } + eval { require Pod::Man }; + $switches .= --utf8 +if (!$@ $Pod::Man::VERSION = 2.18); + my $command = $pod2man $switches --lax $file | $render -man; # no temp file, just a pipe!
Bug#492037: incorrect behaviour of perldoc with UTF-8 texts
On Wed, Jul 23, 2008 at 04:10:58PM +0400, Dmitry E. Oboukhov wrote: Package: perl Version: 5.10.0-10 Tags: l10n Severity: important In attache You can found pod with russian symbols in utf-8 charset. This file is showed incorrectly: X1 perldoc actually runs pod2man in the background, so this is very related to #480997. I'm looking for a way to get this fixed for Lenny, either with the separate podlators-perl package (currently only in sid) or by patching Pod::Man. A workaround for now is the perldoc '-t' option. -- Niko Tyni [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#492037: incorrect behaviour of perldoc with UTF-8 texts
Package: perl Version: 5.10.0-10 Tags: l10n Severity: important In attache You can found pod with russian symbols in utf-8 charset. This file is showed incorrectly: =begin of cut EXAMPLE_RUSSIAN(1)User Contributed Perl Documentation EXAMPLE_RUSSIAN(1) X1 N~XX N~XN~XN~XN~ N~XXXN~XN~X N~XXN~X N~XXXN~XXX 1 N~XXXN~XN~X XN~XXXN~XN~XX =end cut Perldoc from Etch works fine. pod2text works tolerably, but letters 'Э' (1069 == ord 'Э'), 'И' (1048 == ord 'И') will be replaced to symbol 'Ð' pod2man works as perldoc pod2html works fine PS: apache:[~]$ zcat /usr/share/doc/perl/changelog.Debian.gz|dpkg-parsechangelog -l- Source: perl Version: 5.10.0-10 Distribution: unstable Urgency: low Maintainer: Niko Tyni [EMAIL PROTECTED] Date: Thu, 08 May 2008 14:32:30 +0300 Closes: 479460 479762 479863 Changes: perl (5.10.0-10) unstable; urgency=low . * Integrate NMU, thanks Bastian. * Make h2ph allow the quote mark delimiter also for those #include directives chased with h2ph -a. (Closes: #479762) * Adjust manual page sections in Module::Build::Base for the Debian Perl policy. (Closes: #479460) * Disable the v-string in use/require is non-portable warning again. (Closes: #479863) apache:[~]$ zcat /usr/share/doc/perl-doc/changelog.Debian.gz|dpkg-parsechangelog -l- Source: perl Version: 5.10.0-10 Distribution: unstable Urgency: low Maintainer: Niko Tyni [EMAIL PROTECTED] Date: Thu, 08 May 2008 14:32:30 +0300 Closes: 479460 479762 479863 Changes: perl (5.10.0-10) unstable; urgency=low . * Integrate NMU, thanks Bastian. * Make h2ph allow the quote mark delimiter also for those #include directives chased with h2ph -a. (Closes: #479762) * Adjust manual page sections in Module::Build::Base for the Debian Perl policy. (Closes: #479460) * Disable the v-string in use/require is non-portable warning again. (Closes: #479863) -- ... mpd playing: Manowar - Today Is A Good Day To Die . ''`. Dmitry E. Oboukhov : :’ : [EMAIL PROTECTED] `. `~’ GPGKey: 1024D / F8E26537 2006-11-21 `- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537 =head1 заголовок1 Это русский текст =over =item элемент списка 1 текст привязанный к элементу списка 1 =item элемент списка 2 текст привязанный к элементу списка 2 =back просто параграф текста И снова русский текст. Это опять русский текст. =head1 Это русские заглавные буквы: Й Ц У К Е Н Г Ш Щ З Х Ъ Ф Ы В А П Р О Л Д Ж Э Я Ч С М И Т Ь Б Ю =head1 А это маленькие буквы: й ц у к е н г ш щ з х ъ ф ы в а п р о л д ж э я ч с м и т ь б ю =cut signature.asc Description: Digital signature