]> granicus.if.org Git - procps-ng/commit
library: correct that 'escape_str_utf8' guy's behavior
authorJim Warner <james.warner@comcast.net>
Wed, 17 Jun 2020 13:58:50 +0000 (08:58 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 23 Jun 2020 09:09:05 +0000 (19:09 +1000)
commit356e9a0672140653b805ba8d619beb6df4e4770f
tree0365eaa397514f4d575ff25a1454526dc948262c
parent38537f79c7e7e9f57ade5eabf4f87849e66acc2d
library: correct that 'escape_str_utf8' guy's behavior

Thanks to Konstantin for discovering 2 problems in the
issue referenced below. That 15+ year old logic went a
little too far overboard wrestling with a utf8 string.

Henceforth, we will not treat 'x9b' as special. And we
also will handle a 'combining acute accent' correctly.

Reference(s):
https://gitlab.com/procps-ng/procps/-/issues/176

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/escape.c