summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ptexdir/kanji.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-05-08 16:06:43 +0000
committerKarl Berry <karl@freefriends.org>2018-05-08 16:06:43 +0000
commit23b0bd5fbc5ace203cbb19e5961484354a5b5512 (patch)
treea9ff8742ab8eb49ad753fc51ee0955068d4d70da /Build/source/texk/web2c/ptexdir/kanji.c
parent28900bc247047361c2f1b47ca21af9a0a48d1dc7 (diff)
branch2018 patches for rebuild, http://tug.org/pipermail/tlbuild/2018q2/004222.html
git-svn-id: svn://tug.org/texlive/branches/branch2018@47642 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/ptexdir/kanji.c')
-rw-r--r--Build/source/texk/web2c/ptexdir/kanji.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/ptexdir/kanji.c b/Build/source/texk/web2c/ptexdir/kanji.c
index d7e5a3f26be..5cd9ebabe02 100644
--- a/Build/source/texk/web2c/ptexdir/kanji.c
+++ b/Build/source/texk/web2c/ptexdir/kanji.c
@@ -4,6 +4,7 @@
*/
#include "kanji.h"
+#define CS_TOKEN_FLAG 0xFFFF
#if !defined(WIN32)
int sjisterminal;
@@ -12,7 +13,8 @@ int sjisterminal;
/* TOKEN */
boolean check_kanji(integer c)
{
- return is_char_kanji(c);
+ if (c >= CS_TOKEN_FLAG) return false;
+ else return is_char_kanji(c);
}
boolean is_char_ascii(integer c)