diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-07-05 11:09:44 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-07-05 11:09:44 +0000 |
commit | 782afa6ab6e1e78fd32f393483459a46d96b32e9 (patch) | |
tree | 84f69fbe23f6460002408afed753ecbf1a6de161 /Build/source | |
parent | ce2536c9c07221e37d3d3b5b56366adbc507f4b9 (diff) |
seetexk: prevent unwanted looking for texmf.cnf (Windows only)
git-svn-id: svn://tug.org/texlive/trunk@67553 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/seetexk/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/seetexk/dvibook.c | 12 | ||||
-rw-r--r-- | Build/source/texk/seetexk/dviconcat.c | 12 | ||||
-rw-r--r-- | Build/source/texk/seetexk/dviselect.c | 12 | ||||
-rw-r--r-- | Build/source/texk/seetexk/dvitodvi.c | 12 |
5 files changed, 34 insertions, 20 deletions
diff --git a/Build/source/texk/seetexk/ChangeLog b/Build/source/texk/seetexk/ChangeLog index 82993f8d87e..839cc1b19f0 100644 --- a/Build/source/texk/seetexk/ChangeLog +++ b/Build/source/texk/seetexk/ChangeLog @@ -1,3 +1,9 @@ +2023-07-05 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * dvibook.c, dviconcat.c, dviselect.c, dvitodvi.c: + Skip Unicode conversion if command line arguments are missing + in order to prevent unwanted looking for texmf.cnf. (Windows only) + 2020-09-13 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * configure.ac: SeeTeX Ver.20200908 diff --git a/Build/source/texk/seetexk/dvibook.c b/Build/source/texk/seetexk/dvibook.c index 47e51efcaea..cee048731f7 100644 --- a/Build/source/texk/seetexk/dvibook.c +++ b/Build/source/texk/seetexk/dvibook.c @@ -404,11 +404,13 @@ main(int argc, char **argv) int ac; char **av, *enc; - kpse_set_program_name(argv[0], "dvibook"); - enc = kpse_var_value("command_line_encoding"); - if (get_command_line_args_utf8(enc, &ac, &av)) { - argc = ac; - argv = av; + if (argc>1) { + kpse_set_program_name(argv[0], "dvibook"); + enc = kpse_var_value("command_line_encoding"); + if (get_command_line_args_utf8(enc, &ac, &av)) { + argc = ac; + argv = av; + } } #endif diff --git a/Build/source/texk/seetexk/dviconcat.c b/Build/source/texk/seetexk/dviconcat.c index 0184829e609..18e3c14c890 100644 --- a/Build/source/texk/seetexk/dviconcat.c +++ b/Build/source/texk/seetexk/dviconcat.c @@ -404,11 +404,13 @@ main(int argc, char **argv) int ac; char **av, *enc; - kpse_set_program_name(argv[0], "dviconcat"); - enc = kpse_var_value("command_line_encoding"); - if (get_command_line_args_utf8(enc, &ac, &av)) { - argc = ac; - argv = av; + if (argc>1) { + kpse_set_program_name(argv[0], "dviconcat"); + enc = kpse_var_value("command_line_encoding"); + if (get_command_line_args_utf8(enc, &ac, &av)) { + argc = ac; + argv = av; + } } #endif diff --git a/Build/source/texk/seetexk/dviselect.c b/Build/source/texk/seetexk/dviselect.c index 10caa2f820f..99428a2cafe 100644 --- a/Build/source/texk/seetexk/dviselect.c +++ b/Build/source/texk/seetexk/dviselect.c @@ -535,11 +535,13 @@ main(int argc, char **argv) int ac; char **av, *enc; - kpse_set_program_name(argv[0], "dviselect"); - enc = kpse_var_value("command_line_encoding"); - if (get_command_line_args_utf8(enc, &ac, &av)) { - argc = ac; - argv = av; + if (argc>1) { + kpse_set_program_name(argv[0], "dviselect"); + enc = kpse_var_value("command_line_encoding"); + if (get_command_line_args_utf8(enc, &ac, &av)) { + argc = ac; + argv = av; + } } #endif diff --git a/Build/source/texk/seetexk/dvitodvi.c b/Build/source/texk/seetexk/dvitodvi.c index 637f4731cfa..316892635b7 100644 --- a/Build/source/texk/seetexk/dvitodvi.c +++ b/Build/source/texk/seetexk/dvitodvi.c @@ -628,11 +628,13 @@ main(int argc, char **argv) int ac; char **av, *enc; - kpse_set_program_name(argv[0], "dvitodvi"); - enc = kpse_var_value("command_line_encoding"); - if (get_command_line_args_utf8(enc, &ac, &av)) { - argc = ac; - argv = av; + if (argc>1) { + kpse_set_program_name(argv[0], "dvitodvi"); + enc = kpse_var_value("command_line_encoding"); + if (get_command_line_args_utf8(enc, &ac, &av)) { + argc = ac; + argv = av; + } } #endif |