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() 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

Reply via email to