Dec. 30, 2017
11:01 a.m.
I just checked and the bug in #upToAll: is still there in Pharo 7. Bernhard
Am 29.12.2017 um 20:26 schrieb Bernhard Pieber <bernhard@pieber.com>:
Hi Henrik,
Thanks for your answer. Sounds like a bug, then. :-/
Cheers, Bernhard
Am 28.12.2017 um 20:31 schrieb Henrik-Nergaard <draagren@outlook.com>:
Hi,
#upTo: works fine.
'test' asFileReference readStreamDo: [ :stream | stream converter: UTF8TextConverter new; upTo: $e ]. "'Ã'"
It looks like PositionableStream>>#upToAll: assumes a 1 to 1 map per item, and only takes the difference between current position up to the pattern when found.
Best regards, Henrik