summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {