<p></p>
<p>At least for the tags file line ends, I'm starting to suspect it's us, not ctags. The newlines in tags files are written here:</p>
<p><a href="https://github.com/geany/geany/blob/0a0b4b000cf18e837b921057a461ad05a08e41d3/src/tagmanager/tm_source_file.c#L528">https://github.com/geany/geany/blob/0a0b4b000cf18e837b921057a461ad05a08e41d3/src/tagmanager/tm_source_file.c#L528</a></p>
<p>and it's opened here in text mode:</p>
<p><a href="https://github.com/geany/geany/blob/0a0b4b000cf18e837b921057a461ad05a08e41d3/src/tagmanager/tm_source_file.c#L596">https://github.com/geany/geany/blob/0a0b4b000cf18e837b921057a461ad05a08e41d3/src/tagmanager/tm_source_file.c#L596</a></p>
<p>At least from this:</p>
<p><a href="https://stackoverflow.com/questions/58500480/why-does-printf-create-windows-line-endings" rel="nofollow">https://stackoverflow.com/questions/58500480/why-does-printf-create-windows-line-endings</a></p>
<p>on Windows it seems <code>\n</code> produces CRLF. Would opening the file in binary mode help? The curious thing is that this isn't a new code in this patch so I don't understand how it could have worked before.</p>
<p>I think the rest of the failed tests will be caused by something similar in ctags.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2666#issuecomment-734731377">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYPKBB2YMSBZZZJ2ALSR5U2PANCNFSM4T2VTWXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ66CA4BYJRYEOCDA33SR5U2PA5CNFSM4T2VTWXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFPFRY4I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2666#issuecomment-734731377",
"url": "https://github.com/geany/geany/pull/2666#issuecomment-734731377",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>