[squeak-dev] MutliByteFileStream and CrLfFileStream (and windows)

Chris Cunningham cunningham.cb at gmail.com
Thu Aug 14 15:51:21 UTC 2014


Hi Louis,

Yes, this is good, and Squeak already has this.  It is accessible with
MultiByteFileStream class>>lineEndDefault (or the class variable
LineEndDefault) in that class.

Except that it isn't working - it is hooked up to the startUp routine to
determine what it should be, but does not appear to be called.  I'll need
to look into that.

-cbc


On Thu, Aug 14, 2014 at 6:23 AM, Louis LaBrunda <Lou at keystone-software.com>
wrote:

> Hi Chris,
>
> I don't know if this will help but VA Smalltalk has a global variable (a
> string in a pool dictionary) called "LineDelimiter".  When the image starts
> up it checks to see what platform (OS) it is running on and sets it to CrLf
> or Lf as appropriate.  This allows developers to use LineDelimiter wherever
> they want (where they need to match the platform) and not need to check the
> platform all over the place.  Maybe it will make life a little easier for
> you.
>
> Lou
> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon
> mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140814/d61c597a/attachment.htm


More information about the Squeak-dev mailing list