[Eric] bug in eric4

Hans-Peter Jansen hpj at urpla.net
Thu Feb 1 12:14:59 GMT 2007


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


More information about the Eric mailing list