Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Mark Talluto via use-livecode
On May 28, 2020, at 10:33 AM, Mark Wieder via use-livecode wrote: > > On 5/28/20 10:17 AM, Mark Talluto via use-livecode wrote: >> I am a fan of moving Mac to default to LF. We use LF explicitly as our line >> ending of choice in all of our current software projects. >> LF is useful if only to

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Mark Wieder via use-livecode
On 5/28/20 10:17 AM, Mark Talluto via use-livecode wrote: I am a fan of moving Mac to default to LF. We use LF explicitly as our line ending of choice in all of our current software projects. LF is useful if only to natively work with the expected line endings from Github and text files

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Mark Talluto via use-livecode
I am a fan of moving Mac to default to LF. We use LF explicitly as our line ending of choice in all of our current software projects. LF is useful if only to natively work with the expected line endings from Github and text files interchanged with Linux servers. Best regards, Mark Talluto

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Brian Milby via use-livecode
Just changes CR to LF. 2 files updated. https://github.com/livecode/livecode/pull/7214/files On Thu, May 28, 2020 at 12:10 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Alex Tweedly wrote: > > > Re. a PR to change it, it does seem it will run into concerns about

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Brian Milby via use-livecode
binfile is just short for binary file... it means that the file is written exactly as presented. If you use encode (UTF8/16 etc) then you need to use it anyway. The PR is a pretty much single constant update (changes CR to LF for Mac line ending). The backwards compatibility issue is a very

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > Re. a PR to change it, it does seem it will run into concerns about > backward compatability. Is it likely to succeed to propose a new > URL-type - maybe "textfile". What exactly does the PR do? If it changes default Mac line endings from CR to LF, thumbs up. macOS is a

Re: What have I done now ? (aka CR and LF confusion)

2020-05-28 Thread Alex Tweedly via use-livecode
Thanks Brian, that was a very helpful and clear description. It's amazing that I've been an active Runrev/livecode for nearly 20 years and not been affected by this until now :-) Re. a PR to change it, it does seem it will run into concerns about backward compatability. Is it likely to

Re: What have I done now ? (aka CR and LF confusion)

2020-05-27 Thread Brian Milby via use-livecode
You need to use binfile on Mac to get sane line endings.  I have a PR to fix, but doubt it will get merged. On Mac/Windows, file will convert line endings to what LC thinks is the native one for the OS.  CRLF for Windows and CR for Mac (the real CR, not the one that LC uses internally where CR

What have I done now ? (aka CR and LF confusion)

2020-05-27 Thread Alex Tweedly via use-livecode
I don't know if I've done something to my LC prefs, or to my Mac, or to myself :-) the following script on mouseUp    local t    put "asd" & CR & "qwe" & CR & "zxc" into t    put t into URL ("file:/Users/alextweedly/tiny.txt") end mouseUp does create a file - but that file can't be (easily,