From 5e36809374cc4fb16b79ff84d40852e9e8e9d946 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 27 May 2013 23:24:15 +0000 Subject: * liolibext.c (io_popen): must use "r" rather than "rb", or io.popen fails (report from Elie Roux, May 27 18:57:20 CEST 2013, fix from Akira) git-svn-id: svn://tug.org/texlive/trunk@30739 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/lua/liolibext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Build') diff --git a/Build/source/texk/web2c/luatexdir/lua/liolibext.c b/Build/source/texk/web2c/luatexdir/lua/liolibext.c index 08c6f0b69b3..51cbc5bd979 100644 --- a/Build/source/texk/web2c/luatexdir/lua/liolibext.c +++ b/Build/source/texk/web2c/luatexdir/lua/liolibext.c @@ -199,7 +199,7 @@ static int io_popen(lua_State * L) char *cmdname = NULL; int allow = 0; const char *filename = luaL_checkstring(L, 1); - const char *mode = luaL_optstring(L, 2, "rb"); + const char *mode = luaL_optstring(L, 2, "r"); LStream *p = newprefile(L); if (shellenabledp <= 0) { -- cgit v1.2.3