diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-01-09 14:41:08 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-01-09 14:41:08 +0000 |
commit | 253d24e5f0e9deb8c789246445e74b8c3a395df9 (patch) | |
tree | 8eb5641c6f425f4e86962c4fed4df3e43c4f7a8c /Build | |
parent | 05990dcdb5bce5e218164dd437ac795b13ebcac2 (diff) |
more enable -kanji option in (u)pdvitype (patch from Akira Kakuto)
git-svn-id: svn://tug.org/texlive/trunk@25061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/web2c/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/web2c/fixwrites.c | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/web2c/ChangeLog b/Build/source/texk/web2c/web2c/ChangeLog index 948ff1bfaff..a5b011a9294 100644 --- a/Build/source/texk/web2c/web2c/ChangeLog +++ b/Build/source/texk/web2c/web2c/ChangeLog @@ -1,3 +1,9 @@ +2012-01-09 Peter Breitenlohner <peb@mppmu.mpg.de> + + * fixwrites.c: Replace 'fprintf(filename, "%c\n", char);' by + '{ putc(char, filename); putc ('\n', filename); }'. Patch from + Akira Kakuto for (u)pDVItype & Co. where putc() => putc2(). + 2011-10-13 Peter Breitenlohner <peb@mppmu.mpg.de> * common.defines: Remove ALEPHHELP. diff --git a/Build/source/texk/web2c/web2c/fixwrites.c b/Build/source/texk/web2c/web2c/fixwrites.c index 6489377bea2..82d0c8f4ca1 100644 --- a/Build/source/texk/web2c/web2c/fixwrites.c +++ b/Build/source/texk/web2c/web2c/fixwrites.c @@ -438,6 +438,14 @@ main (int argc, string *argv) *as = '\0'; printf ("putc (%s, %s);\n", argp, filename); } + else if (strcmp (args, "%c\\n") == 0) + { + for (as = argp; *as; ++as) ; + while (*--as != ')') ; + *as = '\0'; + printf ("{ putc (%s, %s); ", argp, filename); + printf ("putc ( '\\n', %s); }\n", filename); + } else if (strcmp (args, "%s") == 0) printf ("Fputs (%s, %s\n", filename, argp); else |