X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8c7b880eb8e42c3f51063aa3c3c2520b18777b53..e9ecb46532df39b4429a086ae72c3bfa29c122ef:/uip/mhparse.c diff --git a/uip/mhparse.c b/uip/mhparse.c index 4cff8b9a..0c2c17cd 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -4248,6 +4248,10 @@ noiconv: q = buffer; bufsize = sizeof(buffer); for (p = pm->pm_value; *p != '\0' && bufsize > 1; p++, q++, bufsize--) { + /* FIXME: !iscntrl should perhaps be isprint as that allows all + * classes bar cntrl, whereas the cntrl class can include those + * in space and blank. + * http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html */ if (isascii((unsigned char) *p) && !iscntrl((unsigned char) *p)) *q = *p; else