Re: CrLfFileStream deprecated, use MultiByteFileStream instead.
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.
On Tue, Apr 07, 2020 at 02:24:37PM -0500, stes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 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
> 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" ??
> David Stes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> -----END PGP SIGNATURE-----
> Sent from: http://forum.world.st/Squeak-Dev-f45488.html >