[BUG] StandardFileStream #findStringFromEnd: gets wrong position

goran.krampe at bluefish.se goran.krampe at bluefish.se
Sun Aug 10 08:40:27 UTC 2003


Hi!

Richard Staehli <rastaehli at mac.com> wrote:
> I found this bug when trying to open a Package Loader.  The 
> SqueakMap.2.log file it tried to open was created with 
> StandardFileStream, but I had since changed the default to 
> CrLfFileStream.  The bug is in StandardFileStream >> 
> findStringFromEnd:.  This method calls #next: to get contents to 
> search, but #next: is implemented in CrLfFileStream to substitute cr 
> for crlf, which causes location of string match to appear to be earlier 
> in the file than it actually is."

Ugh. Ok. I wrote that method btw. Well, will check it out unless someone
beats me to it of course.

regards, Göran



More information about the Squeak-dev mailing list