summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2021-06-25 09:02:22 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2021-06-25 09:02:22 +0000
commit74be7c8354ce18fa150ae5096acb9b01ea56783e (patch)
tree6eb87755613e64cc645925d5f71a4dcf432e8f43
parent0ddcde597b889089494d2a84f307947c67bcd3c1 (diff)
ptexenc/unicode-jp.c: UCS2toJISnative(0) fix by H.Kitagawa
git-svn-id: svn://tug.org/texlive/trunk@59698 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/ptexenc/ChangeLog5
-rw-r--r--Build/source/texk/ptexenc/unicode-jp.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/texk/ptexenc/ChangeLog b/Build/source/texk/ptexenc/ChangeLog
index 29f547bf443..cfc0620c330 100644
--- a/Build/source/texk/ptexenc/ChangeLog
+++ b/Build/source/texk/ptexenc/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-25 Hironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
+
+ * unicode-jp.c: changed the returned value of UCS2toJISnative(0)
+ from 0x222F to 0 to indicate that it is invalid.
+
2021-04-17 Karl Berry <karl@tug.org>
* version.ac: now 1.3.11/dev since TL'21 is released.
diff --git a/Build/source/texk/ptexenc/unicode-jp.c b/Build/source/texk/ptexenc/unicode-jp.c
index 1cad4a1a3fb..4bc896b14e1 100644
--- a/Build/source/texk/ptexenc/unicode-jp.c
+++ b/Build/source/texk/ptexenc/unicode-jp.c
@@ -112,6 +112,7 @@ static int UCS2toJISnative(int ucs2)
{
int i, j;
+ if (ucs2==0) return 0;
for (i=0; i<MAXJIS; i++) {
for (j=0; j<94; j++) {
if (UnicodeTbl[i][j] == ucs2) {