From 74be7c8354ce18fa150ae5096acb9b01ea56783e Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Fri, 25 Jun 2021 09:02:22 +0000 Subject: ptexenc/unicode-jp.c: UCS2toJISnative(0) fix by H.Kitagawa git-svn-id: svn://tug.org/texlive/trunk@59698 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ptexenc/ChangeLog | 5 +++++ Build/source/texk/ptexenc/unicode-jp.c | 1 + 2 files changed, 6 insertions(+) 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 + + * 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 * 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