<p></p>
<blockquote>
<p dir="auto">I bet when the data goes through the Mac clipboard code somewhere it uses a C type null terminated string copy so the \0 is taken as the terminator and lost from the data.</p>
</blockquote>
<p dir="auto">Yes, something like that. It can also be the GTK quartz backend or maybe the Mac clipboard can be used in text mode (where it strips <code>\0</code>) or binary mode where it doesn't (copy/paste has to work for e.g. pictures where <code>\0</code> needs to be preserved).</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/2685#issuecomment-974779978">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2Z4ISANG4SFPJHZATUNCZKXANCNFSM4UNTUCJQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ37N6JDEQQVYEJVR23UNCZKXA5CNFSM4UNTUCJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHIM7MSQ.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/2685#issuecomment-974779978",
"url": "https://github.com/geany/geany/issues/2685#issuecomment-974779978",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>