Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

pharo

Comment #5 on issue 3663 by [hidden email]: XMLWriter and  
MultiByteFileStream
http://code.google.com/p/pharo/issues/detail?id=3663

Would be nice to have fixed as I've run into the same problem myself...  
writting settings to XML with WideStrings.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

pharo
Updates:
        Labels: Milestone-1.4 Importance-High

Comment #6 on issue 3663 by [hidden email]: XMLWriter and  
MultiByteFileStream
http://code.google.com/p/pharo/issues/detail?id=3663

Yes somebody should go over the code and propose a fix


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

pharo
Updates:
        Labels: -Importance-High Type-Bug

Comment #7 on issue 3663 by [hidden email]: XMLWriter and  
MultiByteFileStream
http://code.google.com/p/pharo/issues/detail?id=3663

as nothing was done since aug 25, I remove the "important" tag.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

pharo
Updates:
        Labels: -Milestone-1.4

Comment #8 on issue 3663 by [hidden email]: XMLWriter and  
MultiByteFileStream
http://code.google.com/p/pharo/issues/detail?id=3663

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

pharo

Comment #9 on issue 3663 by [hidden email]: XMLWriter and  
MultiByteFileStream
http://code.google.com/p/pharo/issues/detail?id=3663

As I had hit the same bug, I may propose the mine solution. It is in change  
of the XMLWriter itself.

'From Pharo1.4 of 18 April 2012 [Latest update: #14438] on 17 July 2012 at  
2:43:58 am'!

!XMLWriter methodsFor: 'private' stamp: 'MikhailBalkarov 7/17/2012 02:30'!
writeXmlEncoded: aString
"Correct WideString version
It is straightforward but even faster on Pharo without an acceleration of  
the string lookup
"
       
        aString do:[:char|
                char caseOf:{
                [$"]->[self nextPutAll:'"'].
                [$&]->[self nextPutAll:'&'].
                [$<]->[self nextPutAll:'&lt;'].
                [$>]->[self nextPutAll:'&gt;'].
                [LineFeed]->[self  lineBreak].
                [CarriageReturn]->[self lineBreak].
                } otherwise:[
                        self nextPut:char."Ordinary character"
                ].
        ].
        ! !



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3663 in pharo: XMLWriter and MultiByteFileStream

pharo
Updates:
        Labels: Difficulty-Easy

Comment #10 on issue 3663 by [hidden email]: XMLWriter and  
MultiByteFileStream
http://code.google.com/p/pharo/issues/detail?id=3663

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker