Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004665 [Squeak 3.8] major always 08-30-06 07:08 02-23-17 19:16
Reporter ernst View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0004665: PositionableStream>>upToAll: does return string including part of delimiter
Description I have an bug with parsing HTML while using upToAll: .
    e.g.

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

- Relationships

- Notes
(0014601 - 462 - 486 - 984 - 984 - 984 - 984)
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 [^]
 

- Issue History
Date Modified Username Field Change
08-30-06 07:08 ernst New Issue
08-30-06 07:08 ernst File Added: UpToAllTest.st
02-23-17 19:16 tonyg Note Added: 0014601
02-23-17 19:21 tonyg Issue Monitored: tonyg


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
36 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker