summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-07-23 12:10:48 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-07-23 12:10:48 +0000
commitba264e60778691cc6895f4cd1a5ecdc605c99fd3 (patch)
tree1c5c96ba8e62e3fedb0efd6db5b43d70edacb9b9 /Build
parentaedee944c78e50797374835d38ddded16ff0df06 (diff)
change kpathsea_win32_popen to use always binary mode
git-svn-id: svn://tug.org/texlive/trunk@27104 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rw-r--r--Build/source/texk/kpathsea/win32lib.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index ef737820cef..4e7668d52cb 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-23 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * win32lib.c: rewrite kpathsea_win32_popen to use always binary
+ mode.
+
2012-07-13 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am (libkpathsea_la_SOURCES): Skip compilation of
diff --git a/Build/source/texk/kpathsea/win32lib.c b/Build/source/texk/kpathsea/win32lib.c
index 77dde008303..4baa2e7ea6d 100644
--- a/Build/source/texk/kpathsea/win32lib.c
+++ b/Build/source/texk/kpathsea/win32lib.c
@@ -20,8 +20,9 @@
#include <kpathsea/concatn.h>
#include <kpathsea/variable.h>
-FILE * __cdecl kpathsea_win32_popen (kpathsea kpse, const char *cmd, const char *mode)
+FILE * __cdecl kpathsea_win32_popen (kpathsea kpse, const char *cmd, const char *fmode)
{
+ char *mode = "Xb";
STARTUPINFO si;
PROCESS_INFORMATION pi;
SECURITY_ATTRIBUTES sa = { sizeof(SECURITY_ATTRIBUTES), NULL, TRUE };
@@ -42,6 +43,10 @@ FILE * __cdecl kpathsea_win32_popen (kpathsea kpse, const char *cmd, const char
char **s;
BOOL go_on;
+ /* We always use binary mode */
+
+ *mode = *fmode;
+
/* We should look for the application name along the PATH,
and decide to prepend "%COMSPEC% /c " or not to the command line.
Do nothing for the moment. */