From d84e97d47f930a36a342b8dabe410657a607207d Mon Sep 17 00:00:00 2001 From: Luigi Scarso <luigi.scarso@gmail.com> Date: Fri, 9 Sep 2016 06:07:01 +0000 Subject: [PATCH] further w32 patch for luainit.w (A.Kakuto) --- source/texk/web2c/luatexdir/lua/luainit.w | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/texk/web2c/luatexdir/lua/luainit.w b/source/texk/web2c/luatexdir/lua/luainit.w index 67d9e58f6..ca7556420 100644 --- a/source/texk/web2c/luatexdir/lua/luainit.w +++ b/source/texk/web2c/luatexdir/lua/luainit.w @@ -480,21 +480,11 @@ static void parse_options(int ac, char **av) if (sargv[sargc-1][0] == '&') dump_name = xstrdup(sargv[sargc-1] + 1); else { - char *p; if (sargv[sargc-1][0] == '*') input_name = xstrdup(sargv[sargc-1] + 1); else input_name = xstrdup(sargv[sargc-1]); sargv[sargc-1] = normalize_quotes(input_name, "argument"); - /* Same as - input_name = (char *)xbasename(input_name); - but without cast const => non-const. */ - input_name += xbasename(input_name) - input_name; - p = strrchr(input_name, '.'); - if (p != NULL && strcasecmp(p, ".tex") == 0) - *p = '\0'; - if (!c_job_name) - c_job_name = normalize_quotes(input_name, "jobname"); } if (safer_option) /* --safer implies --nosocket */ nosocket_option = 1; -- GitLab