<div dir="ltr"><div>I see, there is ^M after empty in the actual .patch file, if I read the git format-patch output it shows ^M, but the git webUI gets confused and shows ^M as normal line feed.</div><div><br></div><div>++ if ![string match "empty^M" $got] {</div><div><br></div><div>Does it work for you when cherry-picking from the branch.</div><div><br></div><div>Here is the same change in binutils git repo:</div><div><a href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blobdiff;f=binutils/testsuite/binutils-all/ar.exp;h=45be9b1b594b39624f3e010f50bf98892fb64549;hp=508ae9c1d7562c8b0a2c090a93e35acdba733944;hb=4fc874242f8f1bf17cf6e65b159dd804e793e6cd;hpb=23a4bd22c75862fdbaa5faef59b9094ec738f675">https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blobdiff;f=binutils/testsuite/binutils-all/ar.exp;h=45be9b1b594b39624f3e010f50bf98892fb64549;hp=508ae9c1d7562c8b0a2c090a93e35acdba733944;hb=4fc874242f8f1bf17cf6e65b159dd804e793e6cd;hpb=23a4bd22c75862fdbaa5faef59b9094ec738f675</a><br></div><div><br></div><div>It shows '\r' so it isn't there by accident.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 12:54 PM, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I see this strange line also in that branch, I'm checking log.do_patch to see how it's possible that it did apply to me OK.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 12:46 PM, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Strange,<div><br></div><div>it's included here:</div><div><a href="http://git.openembedded.org/openembedded-core-contrib/log/?h=jansa/krogoth-backports" target="_blank">http://git.openembedded.org/op<wbr>enembedded-core-contrib/log/?<wbr>h=jansa/krogoth-backports</a><br></div><div><br></div><div>until next rebase it's this commit SHA:</div><div><a href="http://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/krogoth-backports&id=9d56d74bc2f42cbd6ee6ad1dbddb378a020bbe93" target="_blank">http://git.openembedded.org/op<wbr>enembedded-core-contrib/commit<wbr>/?h=jansa/krogoth-backports&<wbr>id=9d56d74bc2f42cbd6ee6ad1dbdd<wbr>b378a020bbe93</a><br></div><div><br></div><div>Thanks for quick reply</div></div><div class="m_-1707773460168170744HOEnZb"><div class="m_-1707773460168170744h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 12:45 PM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundatio<wbr>n.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, 2016-10-06 at 10:23 +0200, Martin Jansa wrote:<br>
> ++ # This commmand used to fail with: "Malformed archive".<br>
> ++ set got [binutils_run $AR "-t $archive"]<br>
> ++ if ![string match "empty<br>
> " $got] {<br>
> ++ fail $testname<br>
> ++ return<br>
> ++ }<br>
> ++<br>
> ++ pass $testname<br>
<br>
</span>The patch fails to apply due to the above corruption (line not starting<br>
++). Could you resend or point to a branch with the patch on please?<br>
<br>
Cheers,<br>
<br>
Richard<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>