xmlproc maintainer?

Discussion in 'Python' started by Alban Hertroys, Mar 18, 2005.

  1. Hello all,

    We recently (about a week ago) sent a patch to the maintainer of
    xmlproc, but we didn't receive a reply yet. A look at the site reveals
    that the last update was somewhere in 2000.

    Does anybody know who the current maintainer is (if that changed), or
    what the status of xmlproc is? We kind of depend on it...

    The patch fixes a buffering problem if the XML contains utf-8 codes,
    which gets especially problematic if one such character pair starts as
    the last byte in the buffer... Patch attached, in case someone can use it.


    Regards,

    Alban Hertroys,
    MAG Productions.

    --- ../xmlproc-backup/xmlutils.py 2005-03-11 11:04:44.000000000 +0100
    +++ xmlutils.py 2005-03-11 13:45:43.000000000 +0100
    @@ -264,8 +264,8 @@
    decoder could have run out of data. The latter case is very
    hard to determine in Python 2.0"""

    - if str(exc) in ["UTF-8 decoding error: unexpected end of data",
    - "UTF-16 decoding error: truncated data"]:
    + s = str(exc)
    + if s.find('unexpected end of data')!=-1 or s.find('truncated data')!=-1:
    while 1:
    self.encoded_data = new_data[-1]+self.encoded_data
    new_data = new_data[:-1]
    @@ -296,7 +296,7 @@
    first_feed = 1
    self.parseStart()

    - new_data = new_data + self.encoded_data
    + new_data = self.encoded_data + new_data
    self.encoded_data = ""

    if not decoded and not self.charset_converter:
    @@ -720,6 +720,7 @@
    # 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
     
    Alban Hertroys, Mar 18, 2005
    #1
    1. Advertising

  2. Alban Hertroys wrote:
    > We recently (about a week ago) sent a patch to the maintainer of
    > xmlproc, but we didn't receive a reply yet. A look at the site reveals
    > that the last update was somewhere in 2000.
    >
    > Does anybody know who the current maintainer is (if that changed), or
    > what the status of xmlproc is? We kind of depend on it...


    xmlproc is maintained as part of PyXML now; please sent the patch to
    the patches tracker at sf.net/projects/pyxml.

    That said, PyXML did not have a release on its own for quite some time,
    either; mainly due to lack of user interest.

    Regards,
    Martin
     
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Mar 18, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ellinghaus, Lance

    xmlproc returning all strings as unicode?

    Ellinghaus, Lance, Oct 10, 2003, in forum: Python
    Replies:
    1
    Views:
    273
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Oct 10, 2003
  2. Brian Landers
    Replies:
    0
    Views:
    292
    Brian Landers
    Jan 16, 2004
  3. Cees Wesseling
    Replies:
    2
    Views:
    1,419
    Cees Wesseling
    Mar 19, 2005
  4. Tim Arnold

    docbook and xmlproc

    Tim Arnold, Jan 22, 2008, in forum: Python
    Replies:
    1
    Views:
    336
    Stefan Behnel
    Jan 23, 2008
  5. mmm

    DTD validation and xmlproc

    mmm, Apr 23, 2008, in forum: Python
    Replies:
    2
    Views:
    513
Loading...

Share This Page