[Bug 224552] 'od -c' show wrong char when it is a non-printable

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 15 13:41:24 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224552

--- Comment #2 from Yuri Pankov <yuripv at icloud.com> ---
The problem here is that we forget to restore the original character to print
when we encounter what we think is incomplete multibyte sequence at the end of
the line buffer or at EOF -- we peek ahead trying to complete the character,
but if the conversion still fails, we have the character pointer set to the
look-ahead buffer, not what it was originally.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list