@Alex: sorry but i cannot send you the file (i shouldn't even have it). Thanks a lot for the support and the explanation :) Fabrizio 2010/3/28 Stéphane Ducasse <stephane.ducasse@inria.fr>
tx! On Mar 28, 2010, at 9:24 PM, jaayer wrote:
---- On Sun, 28 Mar 2010 11:47:43 -0700 Hernán Morales Durand < hernan.morales@gmail.com> wrote ----
Hi Alex, Try with the attached XML file in your Pharo directory
XMLDOMParser parseDocumentFromFileNamed: (FileDirectory default fullNameFor: 'likelySubtags.xml')
however, it seems to be fixed in XML-Parser-JAAyer.72 Cheers,
The problem was due to XMLStreamReader>>nextMatchAll: relying on #position: and #position and MultiByteFileStream understanding stream position in terms of bytes rather than characters. That's why it worked when Alexandre tried parsing a string containing multi-byte UTF-8 characters--the position of a ReadStream on a string corresponds to the position of characters in the string regardless of their width--but failed when Fabrizio tried to parse a file containing those same characters. It is fixed now and a little faster, too.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project