From: Mattia B. <mat...@li...> - 2007-06-20 20:55:28
|
On Tue, 19 Jun 2007 21:39:29 +0100 Mark Dootson <mar...@zn...> wrote: > Mattia Barbon wrote: > > I do not agree with what you write above (note: I am not saying the current implementation is correct!) > > what I think readline should do is work with bytes: > > > > read a char from the stream > > add it to a charbuffer > > if char == '\n' { > > return the buffer as a byte string, without performing any conversion > > } > > > > I believe that automatically interpreting program output based upon > > wxWidgets ideas (which usually means using the current locale) will cause > > trouble. Returning bytes leaves the interpretation to the calling program > > which is always a safe choice. > > I think you are right. Bytes makes much more sense. Changed in Subversion. I tried it with Wx::Perl::ProcessStream 0.09 and it works as I expect. Pleas let me know if it works for you too. Regards, Mattia |