hexdump: don't print bytes with bit 7 set
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 29 Nov 2007 00:21:46 +0000 (16:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Nov 2007 17:24:53 +0000 (09:24 -0800)
commitd0eec99ce50baa5cc2ac02363cdb2a771ed4e1e2
tree435b232daf15193124f2365882f5068b812e4449
parent6454d1f9038f708d7deef6270ed4ba5bb6e55869
hexdump: don't print bytes with bit 7 set

As Herbert Xu pointed out, bytes (chars) with bit 7 (0x80) set are true
with isprint() but they may not be isascii() but be Unicode instead, so
don't try to print them in hex dumps.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/hexdump.c