==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this 
link:http://bugs.contribs.org/show_bug.cgi?id=7599

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

--- Comment #14 from Charlie Brady 
<[email protected]> ---
(In reply to Charlie Brady from comment #8)

> line 187 of Parser.pm is the code which is running, but line 372 (byte
> 11463) of some other file is where the invalid token is. It's probably a
> locale file - those are read with XML::Parser, if I remember correctly.

navigation-conf contains this code:

...
        foreach my $lfile ( "/etc/e-smith/locale/$lang/FormMagick/general",
                           
"/etc/e-smith/locale/$lang/etc/e-smith/web/functions/$file" )
        {
            if (-f $lfile)
            {
                # Do a quick and dirty parse of the lexicon file
                my $xmlstr = "";
                open(FILE, $lfile) or die "Couldn't open $lfile:\n$!";
                binmode(FILE, ":utf8");
                {
                    local $^W = 0;
                    while ( my $line = <FILE> ) {
                        unless ( utf8::valid($line) ) {
                            warn "$lfile not in UTF-8 format\n";
                            utf8::encode($line);
                        }
                        $xmlstr .= $line;
                    }
                }
                my $xml = $parser->parsestring($xmlstr);
...

If you add:

warn "Running XML::Parser on file $lfile\n";

just before "# Do a quick and dirty..." then you can learn which locale file is
generating the warning.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to