summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-04-26 10:43:24 -0700
committerKevin McCarthy <kevin@8t8.us>2022-11-15 19:36:35 -0800
commita60b22fe2a250f87769239b6120c2ff5de751b28 (patch)
treeca25ab8265ae1aa1457cd9cfa3caa0c7e74f8d75
parent00093fd7f9d1aefc696e4a2a38ebeec432930039 (diff)
Filter U+200C in pager.
"U+200C ZERO WIDTH NON-JOINER" is generating '?' on some systems.
-rw-r--r--pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pager.c b/pager.c
index 6790137f..8df571ab 100644
--- a/pager.c
+++ b/pager.c
@@ -1337,7 +1337,7 @@ static int format_line (struct line_t **lineInfo, int n, unsigned char *buf,
if (Charset_is_utf8)
{
- if (wc == 0x200B || wc == 0xFEFF)
+ if (wc == 0x200B || wc == 0x200C || wc == 0xFEFF)
{
dprint (3, (debugfile, "skip zero-width character U+%04X\n", (unsigned short)wc));
continue;