<div dir="ltr"><div>Hi Eric,</div><div><br></div><div>Did you try <span style="font:400 12.6px/18px monospace;text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:pre;font-size-adjust:none;font-stretch:normal;float:none;background-color:rgb(238,238,238)">git config --global core.autocrlf true</span> ?</div><div><a href="https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration">https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration</a></div><div><br></div><div>It appends CR+LF to end of all lines when you checkout source files.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-21 9:06 GMT+09:00 Eric Wing <span dir="ltr">&lt;<a href="mailto:ewmailing@gmail.com" target="_blank">ewmailing@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt;<br>
&gt; git clone <a href="https://github.com/apple/swift.git" target="_blank" rel="noreferrer">https://github.com/apple/<wbr>swift.git</a><br>
&gt; cd swift<br>
&gt; git checkout swift-4.0.2-RELEASE<br>
&gt; patch -p1 &lt; swift.patch<br>
&gt; cd ..<br>
<br>
I&#39;m having trouble applying the patches. I think it is due to the<br>
Windows line endings. Is there an easy way to work around this to<br>
apply the patches?<br>
</blockquote></div><br></div>