Re: Encoding problem in Gtk2::Ex::PodViewer



On Sun, Jul 27, 2008 at 3:34 PM, Roderich Schupp
<roderich schupp googlemail com> wrote:
It's a bug in Gtk2::Ex::PodViewer::Parser:

Looking over Gtk2::Ex::PodViewer::Parser, I can't see a reason to
"use bytes" - simply discard it and your example works.
The attached patch also does the following:

- Change parse_from_file: it reads the file line by line into
  a variable and passes it to parse_from_string; but the
  latter just wraps the string into an IO::Handle and then
  calls parse_from_filehandle on it. Instead make parse_from_file
  open the file as an IO::File (in :utf8 mode) and pass that
  directly to parse_from_filehandle.

- Make the pod entity decoder (e.g. E<auml> => "\xE4") understand
  numeric entities, e.g. E<123> or E<0xE4>.

Cheers, Roderich

Attachment: parser.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]