[Rpm-maint] [rpm-software-management/rpm] validFilename: Use iscntrl from ctype.h (#773)

Christopher Layne notifications at github.com
Thu Jun 27 17:54:02 UTC 2019


https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html:

> cntrl
> Define characters to be classified as control characters.
> In the POSIX locale, **no characters in classes alpha or print shall be included.**
> 
> In a locale definition file, **no character specified for the keywords upper, lower, alpha, digit, punct, graph, print, or xdigit shall be specified.**
> 

@pmatilai Maybe I'm missing something here, but what's an example of a UTF-8 multi-byte sequence which would fall within the `cntrl` set above (aka false positive) such that it *wouldn't also* cause a problem for the current code as well?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/773#issuecomment-506447468
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190627/ef331312/attachment.html>


More information about the Rpm-maint mailing list