From 5c130e94e4366d38c6553e008973057a3ef9c8e5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 24 Dec 2024 05:20:08 -0500 Subject: fix -a opt, if multibyte char spans dump lines --- uxd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uxd.c') diff --git a/uxd.c b/uxd.c index 9094047..be49939 100644 --- a/uxd.c +++ b/uxd.c @@ -546,6 +546,8 @@ void append_right(char *str) { void append_left(unsigned char byte, int dash, int hl_type) { char tmpbuf[100]; + if(byte & 0x80) line_all_ascii = 0; + if(!dump_column) sprintf(left_buf, hex_addr_fmt, filepos + display_offset); @@ -750,8 +752,6 @@ int dump_utf8_char(void) { bad = 1; } - if(bad || cont_count) line_all_ascii = 0; - /* read and validate the continuation bytes, if any */ for(i = 0; i < cont_count; i++) { int cb; -- cgit v1.2.3