diff options
Diffstat (limited to 'Build/source/texk/kpathsea/win32lib.c')
-rw-r--r-- | Build/source/texk/kpathsea/win32lib.c | 7 |
1 files changed, 6 insertions, 1 deletions
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. */ |