El Dissabte, 1 de desembre de 2012, a les 16:07:01, William Bader va escriure: > In my own code, I sometimes filter with ((c&0x7F) < 0x20 || (c&0x7F) == > 0x7F) to allow accented characters to pass and to avoid using isprint(). I > have had bad luck with passing signed chars to is* macros on old systems, > plus the whole idea is to avoid passing escapes to xterm, and maybe some > locale considers char 27 as printable.Some of the patches call isprint()
Not the only patch that makes sense to us that is the upstream.patch one. Would you agree with that one? Cheers, Albert > with a char, and I think that is bad. The man page for isprint on Fedora > 17 says that the argument to is* macros must be "unsigned char" or EOF. To > be safe, the patches should use isprint((unsigned char)c) or > isprint(c&0xFF).William _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
