From: <am...@us...> - 2010-04-01 07:41:47
|
Revision: 6994 http://jython.svn.sourceforge.net/jython/?rev=6994&view=rev Author: amak Date: 2010-04-01 07:41:40 +0000 (Thu, 01 Apr 2010) Log Message: ----------- A partial fix for xml.dom.Node.data returns bytestrings of decoded unicode http://bugs.jython.org/issue1583 Modified Paths: -------------- trunk/jython/Lib/xml/sax/drivers2/drv_javasax.py trunk/jython/NEWS Modified: trunk/jython/Lib/xml/sax/drivers2/drv_javasax.py =================================================================== --- trunk/jython/Lib/xml/sax/drivers2/drv_javasax.py 2010-03-29 17:17:18 UTC (rev 6993) +++ trunk/jython/Lib/xml/sax/drivers2/drv_javasax.py 2010-04-01 07:41:40 UTC (rev 6994) @@ -185,7 +185,7 @@ self._cont_handler.startPrefixMapping(prefix, uri) def characters(self, char, start, len): - self._cont_handler.characters(str(String(char, start, len))) + self._cont_handler.characters(String(char, start, len).getBytes('utf-8').tostring().decode('utf-8')) def ignorableWhitespace(self, char, start, len): self._cont_handler.ignorableWhitespace(str(String(char, start, len))) Modified: trunk/jython/NEWS =================================================================== --- trunk/jython/NEWS 2010-03-29 17:17:18 UTC (rev 6993) +++ trunk/jython/NEWS 2010-04-01 07:41:40 UTC (rev 6994) @@ -2,6 +2,7 @@ Jython 2.5.2a1 Bugs Fixed + - [ 1225 ] socket.getservbyname/port() not yet supported - [ 1532 ] Cannot use docstring when defining class - [ 1530 ] BoolOp in multiple assign causes VerifyError - [ 1478 ] defaultdict & weakref.WeakKeyDictionary [TypeError: first argument must be callable] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |