diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-01-13 12:49:44 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-01-13 12:49:44 +0000 |
commit | eccd36a335c0a58d592bc22120784f58a15f5801 (patch) | |
tree | 388c7849ad419e6f83462041b5677e96b91fdcac /Build/source/texk/dvipsk/search.c | |
parent | ddec8a038b04d13b12eccfa71bd24b78967dd8c5 (diff) |
Allow Unicode file names in dvips on Windows (Windows only, from T. Tanaka)
git-svn-id: svn://tug.org/texlive/trunk@32651 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/search.c')
-rw-r--r-- | Build/source/texk/dvipsk/search.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/dvipsk/search.c b/Build/source/texk/dvipsk/search.c index 7ef93ba5d36..e3c7e4ff2c1 100644 --- a/Build/source/texk/dvipsk/search.c +++ b/Build/source/texk/dvipsk/search.c @@ -20,6 +20,14 @@ #include <kpathsea/c-pathch.h> #include <kpathsea/variable.h> +#ifdef WIN32 +#undef fopen +#undef popen +#define fopen(file, fmode) fsyscp_fopen(file, fmode) +#define popen(pcmd, pmode) fsyscp_popen(pcmd, pmode) +#define pclose(pstream) _pclose(pstream) +#endif + #ifndef GUNZIP #define GUNZIP "gzip -d" #endif |