[Eric] bug in eric4

Detlev Offenbach detlev at die-offenbachs.de
Thu Feb 1 17:50:00 GMT 2007


Hi,

I'll add the diff to the README-PyXML.txt file.

Detlev

On Thursday 01 February 2007 13:14, Hans-Peter Jansen wrote:
> Am Donnerstag, 1. Februar 2007 schrieb Flavio Coelho:
> > hi,
> >
> > I have created a project, but when I save it, close eric, and later
> > try to open the same project,
> >
> > I get this error message:
> >
> > Fatal Error
> > /home/flavio/Documents/Projetos/Knowledge/Knowledge.e4p
> > Line: 41, Column: 5
> > Character data not allowed outside root element
> >
> > I must say that this is a problem I have on eric 3.9.4 too, Only my
> > older projects, created with older versions of eric, open correctly.
>
> Read the doc, there's a README dedicated to this PyXML bug. Here's
> the diff, which is unfortunately missing in the doc:
>
> --- xml/parsers/xmlproc/xmlutils.py.orig	2006-11-13 11:30:07.768059659
> +0100 +++ xml/parsers/xmlproc/xmlutils.py	2006-11-13 11:30:38.871925067
> +0100 @@ -720,6 +720,7 @@ class XMLCommonParser(EntityParser):
>              # to the recoding.
>              try:
>                  self.data = self.charset_converter(self.data)
> +                self.datasize = len(self.data)
>              except UnicodeError, e:
>                  self._handle_decoding_error(self.data, e)
>              self.input_encoding = enc1
>
>
> Pete
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric

-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list