[squeak-dev] CrLfFileStream deprecated, use MultiByteFileStream instead.

David T. Lewis lewis at mail.msen.com
Tue Apr 7 23:37:39 UTC 2020


Fixed in ImageFormat-dtl.40.

In the past, the CrLfFileStream class was used to to handle
platform-dependent line terminator conventions. It did the job
nicely in its day, but overall did not carry its weight.

I removed the CrLfFileStream dependency, and just hard-coded the
ckformat.c code generator method to emit unix-style newline
line terminators. Nowadays, any non-unix platform can probably
handle the unix terminator convertions, so it is probably no longer
and issue anyway.

Dave


On Tue, Apr 07, 2020 at 02:24:37PM -0500, stes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> 
> 
> Hi,
> 
> When using the "ImageFormat" class on a "Spur" 64bit vm with the
> Squeak5.3-19431-64bit.image, I get the following warning when issuing the
> class method:
> 
> ImageFormat createCkFormatProgram
> 
> It raises a warning:
> 
> CrLfFileStream class>>#new has been deprecated. This class is now obsolete,
> use MultiByteFileStream instead.
> 
> When I click proceed it seems it generates the ckformat.c program
> succesfully.
> 
> Is this something that should be fixed in the "SqueakMap" repository,
> I've installed the ImageFormat class in the 5.3-19431 image by selecting:
> 
>   - SqueakMap
>   - update
>   - select Squeak -> install ImageFormat "Head"
> 
> I've clicked OK when it alerts that this "head" revision is possibly 
> incompatible with my image.
> 
> But if it is the "head" revision, then I suppose it should not be using
> "CrLfFileStream" ??
> 
> Thanks,
> David Stes
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iQEcBAEBCAAGBQJejNMHAAoJEAwpOKXMq1MaEo0IALunOLZdqY3PFaZMQZx7Jkhb
> xUbbwg15u9BlR+NTCLXeGI5l3k2IIvRl6Z2XMIvbH46Pnv2X07SzWP9e0T6EVegf
> js5rZxWBfr8IXIX2KE3VjeHz60XSz3FAZKgsfAKaIT/vRV1844yc1NG1+9OZv5VI
> 8yh0DtqLHbz2yyE0ZL5vMyArlB9FfxNwe+fuzGf7NH254Q+S37kx3PvlVqn8GEUw
> rbXm87uR5sdf/AudrYcuCpj5heTmRDfGBgtIr7yHA4EM8fozPHyROtnmfdL0VigH
> 7SwBoPEgm4qTq/ddZC+R3juL0ItAoDXPCExbLVgteT5fwhB73IJET/jVYomFAug=
> =fGZK
> -----END PGP SIGNATURE-----
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Squeak-Dev-f45488.html
> 


More information about the Squeak-dev mailing list