diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2024-02-01 11:52:39 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2024-02-01 11:52:39 +0000 |
commit | 78ed9b516abbe8ff912974668d86e51cc3504b7d (patch) | |
tree | 90d73dbbc7340e03adf109328e4b8e0d63986bc6 /Build/source/texk/ptexenc/kanjicnv.c | |
parent | afee92f37ca304911160566b13d4536c0aff6de3 (diff) |
ptexenc: Add a new simple encoding conversion utility "ptekf"
git-svn-id: svn://tug.org/texlive/trunk@69656 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ptexenc/kanjicnv.c')
-rw-r--r-- | Build/source/texk/ptexenc/kanjicnv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/texk/ptexenc/kanjicnv.c b/Build/source/texk/ptexenc/kanjicnv.c index c5de51ac2e2..327c3f30fa7 100644 --- a/Build/source/texk/ptexenc/kanjicnv.c +++ b/Build/source/texk/ptexenc/kanjicnv.c @@ -41,6 +41,12 @@ boolean isSJISkanji2(int c) return (0x40 <= c && c <= 0xfc && c != 0x7f); } +boolean isISO8859(int c) +{ + c &= 0xff; + return (0xa0 <= c && c <= 0xff); +} + /* EUC <=> JIS X 0208 code conversion */ int EUCtoJIS(int kcode) { |