summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/uptexdir
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-02-06 11:01:31 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-02-06 11:01:31 +0000
commite3301481b587beb02c5b8071ec99679858330ec7 (patch)
tree6b0fb6d510e03b7b639f057f29bde71b39b12567 /Build/source/texk/web2c/uptexdir
parent9cd8661124409c76f10817e30328481ed3e02fea (diff)
fputs2 (ptex and friends 5 of 5)
git-svn-id: svn://tug.org/texlive/trunk@49959 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/uptexdir')
-rw-r--r--Build/source/texk/web2c/uptexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/uptexdir/kanji.h5
-rw-r--r--Build/source/texk/web2c/uptexdir/uptex.defines1
3 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/uptexdir/ChangeLog b/Build/source/texk/web2c/uptexdir/ChangeLog
index dda72bb8cf2..fb06907fd9c 100644
--- a/Build/source/texk/web2c/uptexdir/ChangeLog
+++ b/Build/source/texk/web2c/uptexdir/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-03 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * kanji.h: Use fputs2() to benefit from kanji encoding conversion.
+ https://github.com/texjporg/tex-jp-build/issues/34
+
2019-01-23 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* kanji_dump.c: Throw a warning when kanji internal encoding
diff --git a/Build/source/texk/web2c/uptexdir/kanji.h b/Build/source/texk/web2c/uptexdir/kanji.h
index 2de3bd16682..8206f72f83e 100644
--- a/Build/source/texk/web2c/uptexdir/kanji.h
+++ b/Build/source/texk/web2c/uptexdir/kanji.h
@@ -51,6 +51,11 @@ extern void init_default_kanji (const_string file_str, const_string internal_str
#define putc(c,fp) putc2(c,fp)
#endif /* !PRESERVE_PUTC */
+#ifndef PRESERVE_FPUTS
+#undef fputs
+#define fputs(c,fp) fputs2(c,fp)
+#endif /* !PRESERVE_FPUTS */
+
#ifdef UPBIBTEX
#define inputline2(fp,buff,pos,size,ptr) input_line2(fp,buff,pos,size,ptr)
#else
diff --git a/Build/source/texk/web2c/uptexdir/uptex.defines b/Build/source/texk/web2c/uptexdir/uptex.defines
index 9223042f5a5..52243e57185 100644
--- a/Build/source/texk/web2c/uptexdir/uptex.defines
+++ b/Build/source/texk/web2c/uptexdir/uptex.defines
@@ -24,6 +24,7 @@
@define function fromDVI ();
@define function toDVI ();
@define function putc2 ();
+@define function fputs2 ();
@define function inputline2 ();
@define function fromJIS ();