mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
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:
committed by
Jan Beulich
parent
7be4186c22
commit
d67c8954d0
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user