Re: Strange behaviour in dd swab conversion

2015-01-04 Thread Ted Unangst
On Sun, Jan 04, 2015 at 18:44, Martin Wolters wrote: > I would have expected dd to report 5 odd length blocks here. When view- > ing the result in hexdump, I found the byte at offset 0xA to be the > same as in the original file, but at 0x15, 0x20, 0x2B and 0x36, they > are replaced by the value 0.

Strange behaviour in dd swab conversion

2015-01-04 Thread Martin Wolters
Hi, I was playing around with dd today and noticed something strange. The specification[1] states: > If the swab conversion is specified, each pair of input data bytes > shall be swapped. If there is an odd number of bytes in the input > block, the last byte in the input record shall not be swap