So, this (before the change) is one of the failing tests today in trunk. With this change (which follows the lead of another test in this class), we can see that reading chunks with lineEndConvention set is completely ignored - in all cases, it returns the raw data unchanged.
Should the text be changed when reading in chunk data? The method #nextChunk calls UTF8TextConverter #nextChunkFromStream:, which calls MultiByteFileStream #basicUpTo:, which does a raw upTo: on the stream. In other words, it explicitly ignores any conversion.
Which path is correct, please?
Also, could $! existing inside of an encoded UTF8 character? It is looking for raw bytes int eh stream that match change character; I'm not familiar enough with UTF8 to know if that it is possible that a second (or third) byte in a UTF8 character could match it, and hence doing a #basicUpTo: would most definitely be wrong.
-cbc