diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2022-09-01 13:49:56 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2022-09-01 13:49:56 +0000 |
commit | e54d39c1730c4a54701d1c12181e64949410b709 (patch) | |
tree | 0954c0f0db6588d1760f7485d3f8eee7e34bc27e /Build/source/texk/mendexk | |
parent | 4cb3016b0f8aa860bd65af15c7bdb1f9f356d125 (diff) |
ptexenc,(u)ptex,mendex: initialize inflie_enc_auto when firstly used (by H.Kitagawa)
git-svn-id: svn://tug.org/texlive/trunk@64255 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk')
-rw-r--r-- | Build/source/texk/mendexk/ChangeLog | 8 | ||||
-rw-r--r-- | Build/source/texk/mendexk/main.c | 25 |
2 files changed, 17 insertions, 16 deletions
diff --git a/Build/source/texk/mendexk/ChangeLog b/Build/source/texk/mendexk/ChangeLog index 0bb8da67899..686bbb16802 100644 --- a/Build/source/texk/mendexk/ChangeLog +++ b/Build/source/texk/mendexk/ChangeLog @@ -1,3 +1,11 @@ +2022-09-01 Hironori Kitagawa <h_kitagawa2001@yahoo.co.jp> + + * main.c: + Initialization of infile_enc_auto is moved to ptexenc. + Moved calls of KP_entry_filetype() (after checking options). + These changes prevent unwanted looking for texmf.cnf. + https://github.com/texjporg/tex-jp-build/pull/144 + 2022-06-12 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * main.c: diff --git a/Build/source/texk/mendexk/main.c b/Build/source/texk/mendexk/main.c index 299006c1394..51fdd403d9f 100644 --- a/Build/source/texk/mendexk/main.c +++ b/Build/source/texk/mendexk/main.c @@ -40,22 +40,6 @@ int main(int argc, char **argv) fprintf (stderr, "Ignoring bad kanji encoding \"%s\".\n", p); } - p = kpse_var_value ("guess_input_kanji_encoding"); - if (p) { - if (*p == '1' || *p == 'y' || *p == 't') - infile_enc_auto = 1; - free(p); - } - - kp_ist.var_name = "INDEXSTYLE"; - kp_ist.path = DEFAULT_INDEXSTYLES; /* default path. */ - kp_ist.suffix = "ist"; - KP_entry_filetype(&kp_ist); - kp_dict.var_name = "INDEXDICTIONARY"; - kp_dict.path = DEFAULT_INDEXDICTS; /* default path */ - kp_dict.suffix = "dict"; - KP_entry_filetype(&kp_dict); - /* check options */ for (i=1,j=k=0;i<argc && j<256;i++) { @@ -230,6 +214,15 @@ int main(int argc, char **argv) } idxcount=j+fsti; + kp_ist.var_name = "INDEXSTYLE"; + kp_ist.path = DEFAULT_INDEXSTYLES; /* default path. */ + kp_ist.suffix = "ist"; + KP_entry_filetype(&kp_ist); + kp_dict.var_name = "INDEXDICTIONARY"; + kp_dict.path = DEFAULT_INDEXDICTS; /* default path */ + kp_dict.suffix = "dict"; + KP_entry_filetype(&kp_dict); + /* check option errors */ if (idxcount==0) idxcount=fsti=1; |