aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-24 05:20:08 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-24 05:20:08 -0500
commit5c130e94e4366d38c6553e008973057a3ef9c8e5 (patch)
treef697d2294e9cd46b8f98bf267a62545d3c76dc45
parent390fb81cdf9a622fab5f1757b249ddf0b2796d88 (diff)
downloaduxd-5c130e94e4366d38c6553e008973057a3ef9c8e5.tar.gz
fix -a opt, if multibyte char spans dump lines
-rw-r--r--uxd.c4
1 files changed, 2 insertions, 2 deletions
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;