summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorTakuji Tanaka <KXD02663@nifty.ne.jp>2013-05-06 02:44:24 +0000
committerTakuji Tanaka <KXD02663@nifty.ne.jp>2013-05-06 02:44:24 +0000
commit7952ecf7e4925da684fab6170df9da5ebc99dcf7 (patch)
tree8d938041329ea457a3d64f940f05a88ed35fc6d5 /Build/source
parent88bdc7c564b3cc08ab5a5a1a497097980d52ef83 (diff)
Move 'UnicodeTbl[0][0] bug fix' into the unicode table
git-svn-id: svn://tug.org/texlive/trunk@30243 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/ptexenc/jisx0208.h3
-rw-r--r--Build/source/texk/ptexenc/unicode-jp.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/Build/source/texk/ptexenc/jisx0208.h b/Build/source/texk/ptexenc/jisx0208.h
index 13b2ccfaf07..c0a5ffa43fb 100644
--- a/Build/source/texk/ptexenc/jisx0208.h
+++ b/Build/source/texk/ptexenc/jisx0208.h
@@ -6,11 +6,12 @@ extern "C" {
#define JISX0208_H
/* This file was derived from "src/VF_Ftype.c" in VFlib2-2.24.2
by Dr. Kakugawa */
+/* Fixed one element of table (UnicodeTbl[0][0]) 0x000 -> 0x3000. */
/* JIS -> Unicode mapping table */
static unsigned short UnicodeTbl[][94] = {
{ /* category 01 */
- 0x0000, 0x3001, 0x3002, 0xFF0C, 0xFF0E, 0x30FB, 0xFF1A, 0xFF1B,
+ 0x3000, 0x3001, 0x3002, 0xFF0C, 0xFF0E, 0x30FB, 0xFF1A, 0xFF1B,
0xFF1F, 0xFF01, 0x309B, 0x309C, 0x00B4, 0xFF40, 0x00A8, 0xFF3E,
0xFFE3, 0xFF3F, 0x30FD, 0x30FE, 0x309D, 0x309E, 0x3003, 0x4EDD,
0x3005, 0x3006, 0x3007, 0x30FC, 0x2015, 0x2010, 0xFF0F, 0xFF3C,
diff --git a/Build/source/texk/ptexenc/unicode-jp.c b/Build/source/texk/ptexenc/unicode-jp.c
index b10962be806..ab91b6e5891 100644
--- a/Build/source/texk/ptexenc/unicode-jp.c
+++ b/Build/source/texk/ptexenc/unicode-jp.c
@@ -100,7 +100,6 @@ static int JIStoUCS2native(int jis)
{
int hi, low;
- if (jis == 0x2121) return 0x3000; /* UnicodeTbl[0][0] bug fix */
hi = HI(jis) - 0x21;
low = LO(jis) - 0x21;
if (0 <= hi && hi < MAXJIS &&
@@ -113,7 +112,6 @@ static int UCS2toJISnative(int ucs2)
{
int i, j;
- if (ucs2 == 0x3000) return 0x2121; /* UnicodeTbl[0][0] bug fix */
for (i=0; i<MAXJIS; i++) {
for (j=0; j<94; j++) {
if (UnicodeTbl[i][j] == ucs2) {