<p>Dunno, but I dont think the "locale specific" is there just for fun. See eg <a href="https://www.gnu.org/software/gnulib/manual/html_node/iscntrl.html" rel="nofollow">https://www.gnu.org/software/gnulib/manual/html_node/iscntrl.html</a>:</p>
<blockquote>
<p>Note: This function’s behaviour depends on the locale, but does not support the multibyte characters that occur in strings in locales with MB_CUR_MAX > 1 (this includes all the common UTF-8 locales).</p>
</blockquote>
<p>...and</p>
<blockquote>
<p>c_iscntrl</p>
<p>This function operates in a locale independent way and returns true only for ASCII characters. It is provided by the Gnulib module ‘c-ctype’.</p>
</blockquote>
<p>...which is the behavior rpm wants. There are in fact several similar risfoo() variants in rpmstring.h that are locale independent, for similar reasons.</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/rpm-software-management/rpm/pull/773?email_source=notifications&email_token=ADLPZU6NAHPPCIBXHNPPWMDP4XVW7A5CNFSM4H3URNYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZY3TY#issuecomment-506695119">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU3VF4YLEO3ACTZVFFLP4XVW7ANCNFSM4H3URNYA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU7ZYQMAPSRHOXOIMCLP4XVW7A5CNFSM4H3URNYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZY3TY.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/rpm-software-management/rpm/pull/773?email_source=notifications\u0026email_token=ADLPZU6NAHPPCIBXHNPPWMDP4XVW7A5CNFSM4H3URNYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZY3TY#issuecomment-506695119",
"url": "https://github.com/rpm-software-management/rpm/pull/773?email_source=notifications\u0026email_token=ADLPZU6NAHPPCIBXHNPPWMDP4XVW7A5CNFSM4H3URNYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZY3TY#issuecomment-506695119",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>