On Tue, May 16, 2017 at 12:16 AM, Thomas <tho...@dateiliste.com> wrote:
> On 2017-05-15 23:09, Warren Young wrote: > >> On May 15, 2017, at 3:27 PM, Thomas <tho...@dateiliste.com> wrote: >> >>> >>> Does it really matter in the 21st century if a line is terminated by CR, >>> LF, or CR/LF anymore? >>> >> >> Notepad.exe in Windows 10 Creator’s Edition still only works properly >> with CR+LF. Since that’s the default handler for *.txt on Windows, yes, >> line ending type still matters for any cross-platform project. >> > > So, after editing a file that belongs to your project with Notepad on > Windows, would you expect an SCM complaining about it when you commit? > > I wouldn't. Real-life case: a developer on a banking project i worked on edited a shell script with notepad and checked it in (without having tested it). The SCM did not complain about Notepad-injected \r characters. After deployment on the live system this script started exiting with "bad interpreter". The reason, which we discovered only after opening the script in Emacs, which shows \r as ^M, was that notepad had mangled it, changing the first line to: #!/bin/sh^M The ^M (\r) is just another character for most Unix tools, and the system was treating the \r as part of the shell's name, which of course didn't work. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users