<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - pdfunite introduces syntax error / illegal characters (as per pdfinfo)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103873#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - pdfunite introduces syntax error / illegal characters (as per pdfinfo)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103873">bug 103873</a>
from <span class="vcard"><a class="email" href="mailto:fredrik@fornwall.net" title="Fredrik Fornwall <fredrik@fornwall.net>"> <span class="fn">Fredrik Fornwall</span></a>
</span></b>
<pre>From <a href="https://github.com/termux/termux-packages/issues/1900">https://github.com/termux/termux-packages/issues/1900</a>:
"prior to Android P (i.e. AOSP master), Android's printf didn't accept invalid
UTF8 sequences in the format string, and so can't be used to print arbitrary
bytes like this. you'd need to use %c%c%c%c -- as your other example does -- or
(hilariously) %s (because only the format string is checked). this is from BSD
code, so it's not just Android that has/had this limitation, so you may be able
to get upstream to switch to the same %c%c%c%c workaround as your other
example."
Would the above patch work for you?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>