[texdoc] [tex-live] texdoc + AR9 on win32

Philip TAYLOR (Ret'd) P.Taylor at Rhul.Ac.Uk
Thu Sep 11 15:14:52 CEST 2008



Manuel Pégourié-Gonnard wrote:

> % wrapper.tlu
> kpse.set_program_name('texlua')
> os.spawn('texlua c:/tmp/program/tlu')
> 
> % program.tlu
> os.execute('start c:\\tmp\\file.pdf')
> 
> (so, two files, total 3 lines of code). Assume the two files are in
> c:\tmp, file.pdf exists, an AR9 is used by start to open the pdf files.
> Then cd to c:\tmp and type "texlua wrapper.tlu", AR9 starts and crashes.
> (Well, AR8.1 and AA9 too...)

OK, modulo the typo at "c:/tmp/program/tlu"
I can replicate and confirm all that; I can
also confirm that TeXLua doesn't crash AR8.1
if launched directly on "program.tlu", and
does crash when launched on "wrapper.tlu"
even if the contents of "program.tlu"
are replaced by :

	os.execute('Rundll32 Shell32,ShellExec_RunDLL c:\\tmp\\file.pdf')

Thus everything seems to point at kpse.set_program_name('texlua')
as being the culprit; who can look inside kpse.set_program_name ?

** Phil.


More information about the texdoc mailing list