diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/texfileio.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/texfileio.w | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/texfileio.w b/Build/source/texk/web2c/luatexdir/tex/texfileio.w index 3d9afbe37e6..396cfd78607 100644 --- a/Build/source/texk/web2c/luatexdir/tex/texfileio.w +++ b/Build/source/texk/web2c/luatexdir/tex/texfileio.w @@ -1125,22 +1125,15 @@ int readbinfile(FILE * f, unsigned char **tfm_buffer, int *tfm_size) stderr, since we have nowhere better to use; and of course we return a file handle (or NULL) instead of a status indicator. - Also, we append "b" to IO_MODE on Windows. - @c -static FILE *runpopen(char *cmd, const char *io_mode) +static FILE *runpopen(char *cmd, const char *mode) { FILE *f = NULL; char *safecmd = NULL; char *cmdname = NULL; int allow; -#ifndef WIN32 - /* Use mode "r" or "w" for Posix. */ - char mode[] = "X"; -#else - /* Use mode "rb" or "wb" for Windows. */ - char mode[] = "Xb"; +#ifdef WIN32 char *pp; for (pp = cmd; *pp; pp++) { @@ -1148,9 +1141,6 @@ static FILE *runpopen(char *cmd, const char *io_mode) } #endif - /* Replace 'X' by 'r' or 'w'. */ - mode[0] = *io_mode; - /* If restrictedshell == 0, any command is allowed. */ if (restrictedshell == 0) { allow = 1; |