in reply to Re^2: Null \x00 being replaced by space \x20
in thread Null \x00 being replaced by space \x20
I then examined the contents of null.txt by running:C:\_32> perl -e "$s = 'x' . chr(0) . 'y';print $s;" >null.txt
After using your script to create null.txt.new, I then ran the same one liner to ascertain the contents of null.new.txtC:\_32> perl -le "open RD, '<', 'null.txt'; $x = <RD>; chomp $x; print + ord substr($x, 0, 1); print ord substr($x, 1, 1);print ord substr($x +, 2, 1); print length $x;" 120 0 121 3
So it looks to me that I also am unable to reproduce the problem.C:\_32> perl -le "open RD, '<', 'null.txt.new'; $x = <RD>; chomp $x; p +rint ord substr($x, 0, 1); print ord substr($x, 1, 1);print ord subst +r($x, 2, 1); print length $x;" 120 0 121 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Null \x00 being replaced by space \x20
by BaldGorilla (Initiate) on Nov 12, 2018 at 19:20 UTC |