Dec. 30, 2017
11:54 a.m.
I created an issue for this: https://pharo.fogbugz.com/f/cases/20898 Bernhard
Am 30.12.2017 um 12:01 schrieb Bernhard Pieber <bernhard@pieber.com>:
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