summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/lib
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-23 13:37:51 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-23 13:37:51 +0000
commite9bd3ab6ed28e53a37d2a2c7fd0707b7a1b6df7b (patch)
treeb53a9c8d456504c06238f364bc094255e15fc70b /Build/source/texk/web2c/lib
parenta281027fa9071117a14369220465f3669d1a32fe (diff)
more upTeX and e-upTeX for WIN32
git-svn-id: svn://tug.org/texlive/trunk@23655 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/lib')
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog2
-rw-r--r--Build/source/texk/web2c/lib/openclose.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index c308834f68d..c013acd471c 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -2,6 +2,8 @@
* texmfmp.c: Remove some (e-)pTeX cruft.
+ * openclose.c [PTEX]: No nkf_open() and nkf_close() for WIN32.
+
2011-08-18 Peter Breitenlohner <peb@mppmu.mpg.de>
* texmfmp.c: Options for (e-)pTeX and (e-)upTeX.
diff --git a/Build/source/texk/web2c/lib/openclose.c b/Build/source/texk/web2c/lib/openclose.c
index a42c14c1036..b71df46e235 100644
--- a/Build/source/texk/web2c/lib/openclose.c
+++ b/Build/source/texk/web2c/lib/openclose.c
@@ -224,7 +224,7 @@ open_input (FILE **f_ptr, int filefmt, const_string fopen_mode)
free (fname);
/* This fopen is not allowed to fail. */
-#ifdef PTEX
+#if defined(PTEX) && !defined(WIN32)
if (filefmt == kpse_tex_format ||
filefmt == kpse_bib_format) {
*f_ptr = nkf_open (nameoffile + 1, fopen_mode);
@@ -317,7 +317,12 @@ close_file (FILE *f)
return;
#ifdef PTEX
+#ifdef WIN32
+ clear_infile_enc (f);
+ if (fclose (f) == EOF) {
+#else
if (nkf_close (f) == EOF) {
+#endif
#else
if (fclose (f) == EOF) {
#endif