mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
PR 33360, Correct strings -Ue output
Signed-off-by: Andrew C Aitchison <andrew@aitchison.me.uk>
This commit is contained in:
committed by
Alan Modra
parent
5e2ebcf1ea
commit
674628ae3a
@@ -757,8 +757,8 @@ display_utf8_char (const unsigned char * buffer)
|
||||
|
||||
case 4:
|
||||
printf ("\\u%02x%02x%02x",
|
||||
((buffer[0] & 0x07) << 6) | ((buffer[1] & 0x3c) >> 2),
|
||||
((buffer[1] & 0x03) << 6) | ((buffer[2] & 0x3c) >> 2),
|
||||
((buffer[0] & 0x07) << 2) | ((buffer[1] & 0x30) >> 4),
|
||||
((buffer[1] & 0x0f) << 4) | ((buffer[2] & 0x3c) >> 2),
|
||||
((buffer[2] & 0x03) << 6) | ((buffer[3] & 0x3f)));
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user