From cf511642d5cba1b4a975cafdd92220d4d054c28b Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Tue, 11 Jul 2017 22:38:37 +0000 Subject: makejvf/write.c: Fix a bug when -3 and -K are used at the same time git-svn-id: svn://tug.org/texlive/trunk@44775 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/makejvf/ChangeLog | 6 ++++++ Build/source/texk/makejvf/write.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'Build/source/texk/makejvf') diff --git a/Build/source/texk/makejvf/ChangeLog b/Build/source/texk/makejvf/ChangeLog index 6b5913d0027..c3b6b61e00b 100644 --- a/Build/source/texk/makejvf/ChangeLog +++ b/Build/source/texk/makejvf/ChangeLog @@ -1,3 +1,9 @@ +2017-07-11 Hironobu Yamashita + + * write.c: Fix a bug which occurs when —3 and -K are used at + the same time (Thanks Takayuki YATO). Char code consistency in + AFM parsing (though -a option is never supported). + 2017-07-10 Hironobu Yamashita * write.c: Fix a bug in -m option on UCS mode. diff --git a/Build/source/texk/makejvf/write.c b/Build/source/texk/makejvf/write.c index 121841a8f12..7d58728940d 100644 --- a/Build/source/texk/makejvf/write.c +++ b/Build/source/texk/makejvf/write.c @@ -520,9 +520,9 @@ void writevfu(int code, FILE *fp) if (jfm_id == 9 && minute) { /* ½Ä½ñ¤­»þ¤Ï¥ß¥Ë¥å¡¼¥È¤ØÊÑ´¹ */ if (afp) { if (code == 0x2019) - sprintf(buf2,"CH <216C>"); + sprintf(buf2,"CH <2032>"); else - sprintf(buf2,"CH <216D>"); + sprintf(buf2,"CH <2033>"); rewind(afp); while (fgets(buf,255,afp)!=NULL) { if (jfm_id==9 && !strncmp(buf,"FontBBox ",9)) { @@ -762,10 +762,12 @@ void writevfu(int code, FILE *fp) } } else { - if (kanatfm || code>=0x10000) + if (kanatfm) cc=4; else cc=3; + if (code>=0x10000) + cc+=1; if (skip) cc+=numcount(skip)+1; if (skip2) -- cgit v1.2.3