Correct -Ue output for nm, objdump and readelf

..., like PR33360 does for strings.

Signed-off-by: Andrew C Aitchison <github@aitchison.me.uk>
This commit is contained in:
Andrew C Aitchison
2025-09-09 12:06:42 +02:00
committed by Jan Beulich
parent 7be4186c22
commit d67c8954d0
3 changed files with 6 additions and 6 deletions

View File

@@ -659,8 +659,8 @@ display_utf8 (const unsigned char * in, char * out, unsigned int * consumed)
case 4:
out += sprintf (out, "\\u%02x%02x%02x",
((in[0] & 0x07) << 6) | ((in[1] & 0x3c) >> 2),
((in[1] & 0x03) << 6) | ((in[2] & 0x3c) >> 2),
((in[0] & 0x07) << 2) | ((in[1] & 0x30) >> 4),
((in[1] & 0x0f) << 4) | ((in[2] & 0x3c) >> 2),
((in[2] & 0x03) << 6) | ((in[3] & 0x3f)));
break;
default: