[OT ish] Visual Code Editor and Line Endings

Bob Sneidar bobsneidar at iotecdigital.com
Mon Jul 10 16:09:02 EDT 2023


Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. 

It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? 

Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. 

One of a hundred things that upset me about Microsoft. 

Bob S

> On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Beware!
> 
> 
> 
> I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday.
> 
> Code does not support CR line endings. I received a text file that was
> output from InDesign(latest version). I made a minor change in the text
> file. I processed it with a program that had been around for years. I sent
> the processed file to the customer and results were disastrous. Unknown to
> me all the LFs in the file were changed without warning to line endings.
> Apparently VC only has 2 line ending options LF and CRLF but not CR.
> Apparently I'm not the first to get bitten by this. An enhancement request
> to support CR line endings has been around for 5 years and not addressed.
> Seem like a simple fix, but what do I know about VC's internals.
> 
> 
> 
> Hope this prevents one of you from getting bitten..
> 
> 
> 
> Ralph DiMola
> 
> IT Director
> 
> Evergreen Information Services
> 
> rdimola at evergreeninfo.net
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list