[BUG]DVS breaks FileContentsBrowser diffing

Julian Fitzell julian at beta4.com
Fri Jun 27 19:58:52 UTC 2003


Jimmie Houchin wrote:
[...]
> It seems from browsing that the CrLfFileStream does much of that. The 
> problem I was having is that I was using 
> FileList2>>modalFileSelectorForSuffixes:  which returns a 
> StandardFileStream.
> 
> And as such my text file on Linux was full of 'lf's and the #nextLine 
> was not working.
[...]

Oh god, tell me about it.  I encountered this a while back as well and 
proposed that we habe FileList2 return a File class (a 
so-far-non-existant class around which there has been much discussion 
but no implementation :) instead of a stream.  There's really no reason 
for it to return a stream directly - you might want to delete the file 
you selected, not open it, for example.

Anyway, you can change #concreteStream on... FileStream I think (just 
search for the selector name) to use CrLfFileStrem instead of 
StandardFileStream and then, as I recall, it will work... might cause 
you other problems though :S

Julian




More information about the Squeak-dev mailing list