Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 13:41:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 224552] 'od -c' show wrong char when it is a non-printable
Message-ID:  <bug-224552-8-kOBHOymIBw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224552-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224552-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224552

--- Comment #2 from Yuri Pankov <yuripv@icloud.com> ---
The problem here is that we forget to restore the original character to pri=
nt
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224552-8-kOBHOymIBw>