summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorJoachim Schrod <jschrod@acm.org>2007-07-04 13:53:24 +0000
committerJoachim Schrod <jschrod@acm.org>2007-07-04 13:53:24 +0000
commit4ba824b346bc89b30e8c147717ff00db7108f2cb (patch)
treed2c6e90c3dfa505bcb688482a1a7bd1c59aff618 /Build/source
parentd01e581a9d1c27d27cfe5a77792e409ea4310346 (diff)
Call kpse_set_program_name() correctly, then
kpse_reset_program_name() is not needed. git-svn-id: svn://tug.org/texlive/trunk@4543 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/dviljk/dvi2xx.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Build/source/texk/dviljk/dvi2xx.c b/Build/source/texk/dviljk/dvi2xx.c
index 233a08c4ce5..93524827406 100644
--- a/Build/source/texk/dviljk/dvi2xx.c
+++ b/Build/source/texk/dviljk/dvi2xx.c
@@ -175,14 +175,7 @@ char *argv[];
setbuf(ERR_STREAM, NULL);
G_progname = argv[0];
#ifdef KPATHSEA
- kpse_set_program_name("dvilj", NULL);
-#ifdef HAVE_PROGRAM_INVOCATION_NAME
- /* ARGH. kpse_set_program_name() does not set the program name if we're on
- a system where the feature HAVE_PROGRAM_INVOCATION_NAME is defined. Then
- we have to call kpse_reset_program_name() to enforce our wish for our
- program name. Brain-damaged interface, if you ask me. [03 Jul 07 -js] */
- kpse_reset_program_name("dvilj");
-#endif
+ kpse_set_program_name(argv[0], "dvilj");
kpse_set_program_enabled (kpse_pk_format, MAKE_TEX_PK_BY_DEFAULT, kpse_src_compile);
#endif
DecodeArgs(argc, argv);