FTR Michael and I talked about this over IRC, and my usage of Michael's code was
not optimal. Calling flush() everytime would force outputting content
that could still contain the inicial bits of an incomplete escape
sequence. Just not calling flush() after every read does the trick.
I have just linked a branch that uses Michael's code and passes all my
unit tests. Next step is testing againt the fastmodel.
FTR Michael and I talked about this over IRC, and my usage of Michael's code was
not optimal. Calling flush() everytime would force outputting content
that could still contain the inicial bits of an incomplete escape
sequence. Just not calling flush() after every read does the trick.
I have just linked a branch that uses Michael's code and passes all my
unit tests. Next step is testing againt the fastmodel.