Change hexadump to accept all ascii characters

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11093 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-11-30 21:21:15 +00:00
parent 1f403a8463
commit 41a24210cc

View File

@ -5165,7 +5165,7 @@ sub hexadump {
foreach(@$data) {
printf("%02x ",$_);
$alpha[$c] = sprintf("%c",$_);
if($alpha[$c] !~ /\w/) {
if($_ < 0x20 or $_ > 0x7e) {
$alpha[$c] = ".";
}
$c++;