From: Mark D. <mar...@zn...> - 2007-06-19 20:39:49
|
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. Regards Mark |