Re: How to find utf8.enc?



John Bokma wrote:
newsdog <newsdog@xxxxxxxxxxx> 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...
.



Relevant Pages

  • Re: tclX memory fault
    ... compile fails miserably. ... checking for gcc... ... or: parse error before "daddr_t" ...
    (comp.lang.tcl)
  • Re: Fortran 90 MAT FIle I/O module
    ... I have gotten some of it to compile with gfortran/ifort on linux. ... I have in the past removed the runtime/dl-malloc.c and main.c modules from thelibrary which seems to work for C calling a fortran module, but I'm skeptical about the other way around. ... Read Int32 data err = FMat_VarReadInfo ...
    (comp.soft-sys.matlab)
  • [PATCH -rt]: mtd cafe: Use IRQF_SHARED
    ... I need the following fix to compile your -rt patch, ... mtd cafe: Use IRQF_SHARED ... if (err) { ...
    (Linux-Kernel)
  • Re: make MFC app support UNICODE
    ... make app support UNICODE,but I compile the program,compiler ... report:"unresolved external symbol _WinMain@16". ... What's the meaning of the ... err msg?how to solve it? ...
    (microsoft.public.vc.mfc)