]> Kevux Git Server - fll/commit
Regression: The trailing Unicode sequences don't always show correctly for sequences...
authorKevin Day <thekevinday@gmail.com>
Fri, 15 Apr 2022 21:56:11 +0000 (16:56 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 15 Apr 2022 21:56:11 +0000 (16:56 -0500)
commitf31cef3fd7ef5b4183664b4505c34ed4abc72ffb
tree8f50e40df21836df9e8783195bff515346bbccdc
parentf985269ef5033fac4cbb576dd2fa01c08b3a02b3
Regression: The trailing Unicode sequences don't always show correctly for sequences ending normally.

The commit 85df83a6d846d575657016682c7014a09ac8af4e didn't handle all of the cases it needed to.
I forgot to check the normal behavior and ended up breaking normal behavior while fixing the exception cases.

The width_utf might be -1 for ASCII and performing the subtracting without handling -1 (and then casting it to unsigned) results in bad behavior.

Only handle incomplete character at the end of the stream when the character is actually incomplete.
level_3/byte_dump/c/private-byte_dump.c