473,394 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

xmlproc maintainer?

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

Jul 18 '05 #1
1 1810
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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ellinghaus, Lance | last post by:
Is there a way to make xmlproc not return all strings as unicode? I am passing in standard ASCII and it returns all data as unicode... Or is there an easy way to convert unicode to standard...
0
by: Eugene Oden | last post by:
does anyone know who's the current maintainer for kinfxdb? from what i can tell the original author is no longer maintaining it. i've made several changes for our organization and would like to...
0
by: François Pinard | last post by:
Hello to everybody, and Emacs users in the Python community. The Pymacs project (described below) now has new maintainer: Syver Enstad <syver@inout.no>. I'm inviting Pymacs users to collaborate...
2
by: Cees Wesseling | last post by:
Hi, it seems that xmlproc, the default Validating parser, in my setup does not call back to setDocumentLocator. Is there anyway to get a locator in my handler? Below you find an example and its...
2
by: Carsten Haese | last post by:
Hello everybody: I have discovered that the functionality for connecting Python to an Informix database is currently in a frustrating state of neglect. The link to Kinfxdb is dead, and...
0
by: Carsten Haese | last post by:
Hi Everybody: Since the current maintainer of the informixdb module appears to have gone missing, I have decided to take over the project. The new home of the informixdb module is...
2
by: Mark Harrison | last post by:
So, I've made a couple of small but useful additions to the xml-rpc package. Is there an assigned maintainer of the package I should communicate with? I've got the server side running under...
2
by: mmm | last post by:
I found Python code to validate a XML document basd on DTD file layout. The code uses the 'xmlproc' package and these module loading steps from xml.parsers.xmlproc import xmlproc from...
2
by: dhtml | last post by:
Bart - Are you an FAQ Maintainer? I've tried mailing you but it bounced. If you're an FAQ maintainer, please send me a mail so we can work together. Garrett
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.