diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2024-01-15 23:28:41 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2024-01-16 00:18:06 +0000 |
commit | 8ed5d3b5bf97f5a459c5bbe7f9264903cb728d88 (patch) | |
tree | 0aafabcf3dfaab7685fa0fcbaa683dafe287807e /src/UCAux.c | |
parent | 3ee8300fec5d35be98863ab0101433d348c936cc (diff) | |
download | lynx-snapshots-8ed5d3b5bf97f5a459c5bbe7f9264903cb728d88.tar.gz |
snapshot of project "lynx", label v2-9-0
Diffstat (limited to 'src/UCAux.c')
-rw-r--r-- | src/UCAux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/UCAux.c b/src/UCAux.c index 44495a61..a10f6249 100644 --- a/src/UCAux.c +++ b/src/UCAux.c @@ -1,5 +1,5 @@ /* - * $LynxId: UCAux.c,v 1.58 2021/07/01 23:34:24 tom Exp $ + * $LynxId: UCAux.c,v 1.59 2024/01/15 11:24:17 tom Exp $ */ #include <HTUtils.h> @@ -669,9 +669,7 @@ dUTF8 HTDecodeUTF8(UTFDecodeState * me, int *c_in_out, UCode_t *result) * continue a multibyte character... */ if (me->utf_count > 0 && (TOASCII(c) & 0xc0) == 0x80) { - if (me->utf_count <= 0) { - me->utf_char = UCS_REPL; - } else if (me->utf_count == 1) { + if (me->utf_count == 1) { int limit = (int) (me->utf_buf_p - me->utf_buf) + 1; int maybe = 0; |