diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2022-06-14 13:50:45 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2022-06-14 13:50:45 +0000 |
commit | d41f71b8ae5ddf26468b2e3d9a61df9ed7711139 (patch) | |
tree | 3de4ac06bcad7e386f7a23fa98fbcfa6f786b5fe /Build/source/texk/ptexenc | |
parent | b24ee6c30dcb11240fb97373d686333b437c28f0 (diff) |
ptexenc: more strict check of multibytes before EOF
git-svn-id: svn://tug.org/texlive/trunk@63587 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ptexenc')
-rw-r--r-- | Build/source/texk/ptexenc/ptexenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Build/source/texk/ptexenc/ptexenc.c b/Build/source/texk/ptexenc/ptexenc.c index db0a5e624d0..db05d6c2451 100644 --- a/Build/source/texk/ptexenc/ptexenc.c +++ b/Build/source/texk/ptexenc/ptexenc.c @@ -955,6 +955,8 @@ char *ptenc_guess_enc(FILE *fp) } } + if (pos_db) maybe_sjis = maybe_euc = 0; + if (pos_utf8) maybe_utf8 = 0; if (is_ascii) strcpy(enc,"ASCII"); else if (maybe_sjis+maybe_euc+maybe_utf8>1) { |