On 26/03/2026 06:30, Collin Funk wrote:
Pádraig Brady <[email protected]> writes:
We don't output an address for `od missing` or `od --strings .`,
so be consistent and suppress the address for `od .`.
* src/od.c (dump): Only output an address if no errors
or the offset is non zero.
---
src/od.c | 3 ++-
tests/od/od-N.sh | 7 +++++++
2 files changed, 9 insertions(+), 1 deletion(-)
Looks good to me, thanks.
I can have a look at adding multi-byte character support to 'od', by the
way. I think some changes have to made to process 2 blocks at a
time. That should allow you to handle characters which cross block
boundaries.
Cool, POSIX has some notes on multi-byte at:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/od.html
Re buffering for cut(1) I'm playing around with extending mbbuf
to provide buffers while auto handling MCEL_LEN_MAX slop at the end.
cheers,
Padraig