From 3c7015836174a57a5093d719c7bf0076079b173f Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 22 Mar 2019 22:57:44 +0000 Subject: Fix a bug in the case of --recorder option (w32 only) git-svn-id: svn://tug.org/texlive/trunk@50539 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/lib/ChangeLog | 7 +++++++ Build/source/texk/web2c/lib/texmfmp.c | 11 ++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'Build/source/texk/web2c/lib') diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index ca3bbb0c28e..9f913eb4bc2 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,3 +1,10 @@ +2019-03-23 Akira Kakuto + + * texmfmp.c: On windows, xetex and pdftex did not record + texmf.cnf in the case of --recorder because of special + initializations. Fix this bug. It is not needed to rebuild + in other platforms. + 2019-01-01 Akira Kakuto * printversion.c: Update copyright year. diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c index c0606272b29..092e834b0c2 100644 --- a/Build/source/texk/web2c/lib/texmfmp.c +++ b/Build/source/texk/web2c/lib/texmfmp.c @@ -738,16 +738,17 @@ maininit (int ac, string *av) parse_options (ac, av); #endif -#if IS_pTeX - /* In pTeX and friends, texmf.cnf is not recorded in the case of --recorder, - because parse_options() is executed after the start of kpathsea due to - special initializations. Therefore we record texmf.cnf here. */ +#if IS_pTeX || ((defined(XeTeX) || defined(pdfTeX)) && defined(WIN32)) + /* In pTeX and friends, or in WIN32, texmf.cnf is not recorded in + the case of --recorder, because parse_options() is executed + after the start of kpathsea due to special initializations. + Therefore we record texmf.cnf here. */ if (recorder_enabled) { string p = kpse_find_file ("texmf.cnf", kpse_cnf_format, 0); if (p) recorder_record_input (p); } -#endif +#endif /* IS_pTeX || (...) */ /* If -progname was not specified, default to the dump name. */ if (!user_progname) -- cgit v1.2.3