aboutsummaryrefslogtreecommitdiff
path: root/tc.nls.c
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2023-01-29 20:46:19 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2023-01-29 20:46:19 +0000
commit143ef44f06822f82a8358d4c02f07102d963fe5f (patch)
treef9080b8a265dd926053ee7ae187e8fa46f3fb5e0 /tc.nls.c
parent174d8b60324d7e8754709f7155e13ca95220b48c (diff)
Diffstat (limited to 'tc.nls.c')
-rw-r--r--tc.nls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tc.nls.c b/tc.nls.c
index f59df412e14a..0ceff85a124d 100644
--- a/tc.nls.c
+++ b/tc.nls.c
@@ -136,8 +136,10 @@ NLSClassify(Char c, int nocomb, int drawPrompt)
if (c >= 0x100000) /* U+100000 = F4 80 80 80 */
return NLSCLASS_ILLEGAL3;
#endif
+#ifdef SHORT_STRINGS
if (c >= 0x10000) /* U+10000 = F0 90 80 80 */
return NLSCLASS_ILLEGAL2;
+#endif
}
if (Iscntrl(c) && (c & CHAR) < 0x100) {
if (c == '\n')