TYPE_FIELD, ct->c_file);
return NOTOK;
}
- ToLower(ci->ci_type);
+ to_lower(ci->ci_type);
while (isspace ((unsigned char) *cp))
cp++;
TYPE_FIELD, ct->c_file, ci->ci_type);
return NOTOK;
}
- ToLower(ci->ci_subtype);
+ to_lower(ci->ci_subtype);
magic_skip:
while (isspace ((unsigned char) *cp))
#endif /* HAVE_ICONV */
/*
- * Take everything non-ASCII and substituite the replacement character
+ * Take everything non-ASCII and substitute the replacement character
*/
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))
+ if (isascii((unsigned char) *p) && isprint((unsigned char) *p))
*q = *p;
else
*q = replace;