Mantis - Squeak 3.8
Viewing Issue Advanced Details
4665 major always 08-30-06 07:08 09-01-17 05:45
ernst  
krono  
normal  
resolved  
fixed  
none    
none  
0004665: PositionableStream>>upToAll: does return string including part of delimiter
I have an bug with parsing HTML while using upToAll: .
    e.g.

On a MultiByteFileStream
upToAll: '<' gives ' VĂ?RONIQUE
</'
    which makes no sense.
I did this on Linux fedora core 5 64-bit, Squeak 3.8
 UpToAllTest.st [^] (1,204 bytes) 08-30-06 07:08

Notes
(0014601)
tonyg   
02-23-17 19:16   
Diagnosis: Stream positions reflect a count of bytes in MultiByteFileStream, and PositionableStream upToAll: calls next: with a count of bytes. However, MultiByteFileStream's next: expects a count of characters.

Test cases: http://source.squeak.org/inbox/MultilingualTests-tonyg.22.mcz [^]
First half of proposed fix: http://source.squeak.org/inbox/Collections-tonyg.734.mcz [^]
Second half of proposed fix: http://source.squeak.org/inbox/Multilingual-tonyg.218.mcz [^]
(0014603)
krono   
09-01-17 05:45   
Resolved with Collections-pre.763