On Friday 30 July 2004 7:20 am, Yoshiki Ohshima wrote:
The rule of thumb is that if you open a file, you should think about it is text or binary, and if it is text, you should think about how it is interpreted.
Sure. And the authors of the code that was broken had done that when they wrote it.
I had some hard time to parse this sentense... What does this "that" denotes? ^^; I'd assume that "that" means "think about how it is interpreted", right? If so, I found that the assumptions by some of the authors when they wrote it needs to be changed.
Sorry. I was just saying that we have to be careful not to break the prior assumptions.
All previously-existing code expected that text streams would return Characters that had a 1:1 mapping to the bytes in the file.