[tex-k] kpse program name
kakuto at fsci.fuk.kindai.ac.jp
Wed Jul 4 06:16:02 CEST 2007
> kpse_set_program_name("dvilj", NULL);
> in a main program, it doesn't take "dvilj" as program name.
> "Doesn't take"?
> kpse_set_program_name(), one expects that it *does* set the program
> name and not that it ignores the argument.
> Well, there is code in set_program_name which is conditionally executed
> to set the "kpse_program_name" variable, so I don't think it's
> completely ignored. But indeed, it seems Olaf added reset_program_name
> specifically to reset the paths as well.
> Can you propose a patch? I'm not sure what you were expecting.
I think that Olaf introduced the second argument for
kpse_set_program_name() in order to set kpse_program_name
"defferent from program_invocation_short_name".
So, the right usage in this case is
kpse_set_program_name (argv, "dvilj");
More information about the tex-k