Prev: Hanging at several places when multiple-commanding Net::SSH::W32Perl
Next: Cannot print images with Win32::Printer
From: newsdog on 27 Nov 2006 12:34 I'm running perl 5.8.8-5 under Fedora 5. My program uses XML::Simple, which produces an error when I try to compile: ../frontend Couldn't open encmap utf8.enc: No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser.pm line 187 I cannot find the utf8.end file anywhere on my system, nor can I find any mention of it online except in packages intended for working with Czech or Chinese. The various Unicode help files I have looked at make no mention of this file either. What do I need to do to activate, download, or create the needed file? Any help much appreciated...
From: John Bokma on 27 Nov 2006 13:32 newsdog <newsdog(a)quercus.org> wrote: > I'm running perl 5.8.8-5 under Fedora 5. My program > uses XML::Simple, which produces an error when I try to compile: > > ./frontend > Couldn't open encmap utf8.enc: > No such file or directory > at > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser.pm > line 187 We might be more able to help you (I guess) if you post line 187 (probably with some lines before it as well) so we can see the actual code that caused this (not all errors are clearly written, sadly). -- John Experienced Perl programmer: http://castleamber.com/ Perl help, tutorials, and examples: http://johnbokma.com/perl/
From: Newsgroups on 27 Nov 2006 13:42 Le lundi 27 novembre 2006 à 17:34 +0000, newsdog a écrit : > I'm running perl 5.8.8-5 under Fedora 5. My program > uses XML::Simple, which produces an error when I try to compile: > > ./frontend > Couldn't open encmap utf8.enc: > No such file or directory > at > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser.pm > line 187 I've a similar problem since yesterday. sudentdly, my script crashed with the same error, but not "utf8.enc". It couldn't opened "iso-8859-15.enc" > I cannot find the utf8.end file anywhere on my system, nor can I find > any mention of it online except in packages intended for working with > Czech or Chinese. The various Unicode help files I have looked at make > no mention of this file either. I cannot locate "iso-8859-15.enc" too. > > What do I need to do to activate, download, or create the needed file? I probably have updated some libraries, so I think it could be a bug in one of them... > Any help much appreciated... I don't have already tested, but somebody give me an answer to my post, in fr.comp.lang.perl, (subject is "Couldn't open encmap" : Mon, 27 Nov 2006 09:53:58 +0100)
From: newsdog on 27 Nov 2006 16:17
John Bokma wrote: > newsdog <newsdog(a)quercus.org> wrote: > >> I'm running perl 5.8.8-5 under Fedora 5. My program >> uses XML::Simple, which produces an error when I try to compile: >> >> ./frontend >> Couldn't open encmap utf8.enc: >> No such file or directory >> at >> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser.pm >> line 187 > > We might be more able to help you (I guess) if you post line 187 (probably > with some lines before it as well) so we can see the actual code that > caused this (not all errors are clearly written, sadly). > Here is the block of code from Parser.pm that produces the error, with line 187 indicated: my $expat = new XML::Parser::Expat(@expat_options, @_); my %handlers = %{$self->{Handlers}}; my $init = delete $handlers{Init}; my $final = delete $handlers{Final}; $expat->setHandlers(%handlers); if ($self->{Base}) { $expat->base($self->{Base}); } &$init($expat) if defined($init); my @result = (); my $result; eval { $result = $expat->parse($arg); <== LINE 187 }; my $err = $@; if ($err) { $expat->release; die $err; } [end of code block] The Expat package is installed; the problem appears to be that utf8 is the default character encoding, but there is no .enc object for the default. But I am baffled as to what to do about it... |