<p></p>
<p>I still think reading the source files is not the problem. Tag parsing works fine on Windows, for LF and CRLF source files.</p>
<p>Anyway, I added some code in <a href="https://github.com/geany/geany/blob/c5303c9499bb6f0d632e0ca5b42e15f84d64ac52/ctags/main/read.c#L845">https://github.com/geany/geany/blob/c5303c9499bb6f0d632e0ca5b42e15f84d64ac52/ctags/main/read.c#L845</a> to print the return value of <code>mio_gets()</code>.</p>
<p>The source file content I used for testing, saved with CRLF line endings:<br>
static void test_function(char *const str)<br>
{<br>
printf("%s", str);<br>
}</p>
<p>The hex representation of the <code>mio_gets()</code> result after the file is <em>opened from disk</em> (spaces and line breaks added by me):<br>
73 74 61 74 69 63 20 76 6f 69 64 20 74 65 73 74 5f 66 75 6e 63 74 69 6f 6e 28 63 68 61 72 20 2a 63 6f 6e 73 74 20 73 74 72 29 0d 0a<br>
7b 0d 0a<br>
09 70 72 69 6e 74 66 28 22 25 73 22 2c 20 73 74 72 29 3b 0d 0a<br>
7d 0d 0a</p>
<p>The hex representation of the <code>mio_gets()</code> result after the file was edited in Geany (spaces and line breaks added by me):<br>
73 74 61 74 69 63 20 76 6f 69 64 20 74 65 73 74 5f 66 75 6e 63 74 69 6f 6e 28 63 68 61 72 20 2a 63 6f 6e 73 74 20 73 74 72 29 0d 0a<br>
7b 0d 0a<br>
09 70 72 69 6e 74 66 28 22 25 73 22 2c 20 73 74 72 29 3b 0d 0a<br>
7d 0d 0a</p>
<p>As you can see, the read lines contain the CRLFs.</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/issues/2677#issuecomment-737531575">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYXATLQ6AX6XHHG23LSS243HANCNFSM4UGQMLEQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYAFOH6LQODXA6X5GDSS243HA5CNFSM4UGQMLE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFP25NNY.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/issues/2677#issuecomment-737531575",
"url": "https://github.com/geany/geany/issues/2677#issuecomment-737531575",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>