summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-05-11 04:38:12 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-05-11 04:38:12 +0000
commit15aab7c66f0d872fe3ce195673f7a9f485062615 (patch)
tree2734b7e8590fb515da109247ee3c84d0f83489bd /Build/source/texk/web2c/pdftexdir
parentb8a8ef5357db2251bc42d4589a2231790630e6cd (diff)
Allow non-ascii file names in pdfTeX (w32 only)
git-svn-id: svn://tug.org/texlive/trunk@47677 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir')
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/pdftexdir/ptexlib.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index f4af0358e84..d92a00e9864 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,7 @@
+2018-05-11 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * ptexlib.h: Allow non-ascii file names in pdfTeX (w32 only).
+
2018-04-28 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* pdftoepdf-newpoppler.cc, pdftosrc-newpoppler.cc:
diff --git a/Build/source/texk/web2c/pdftexdir/ptexlib.h b/Build/source/texk/web2c/pdftexdir/ptexlib.h
index dc3403f7677..c43c8728f9b 100644
--- a/Build/source/texk/web2c/pdftexdir/ptexlib.h
+++ b/Build/source/texk/web2c/pdftexdir/ptexlib.h
@@ -20,6 +20,13 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef PDFTEXLIB
# define PDFTEXLIB
+#ifdef _WIN32
+#undef fopen
+#undef xfopen
+#define fopen fsyscp_fopen
+#define xfopen fsyscp_xfopen
+#endif
+
/* WEB2C macros and prototypes */
# if !defined(PDFTEXCOERCE) && !defined(PDFETEXCOERCE)
# ifdef pdfTeX