[Dev-luatex] running scripts from UNC paths

T T t34www at googlemail.com
Thu Apr 15 18:46:17 CEST 2010


On 15 April 2010 17:18, Taco Hoekwater <taco at elvenkind.com> wrote:
> T T wrote:
>>
>> On 15 April 2010 16:34, Taco Hoekwater <taco at elvenkind.com> wrote:
>>>
>>> Or any other older version, I'm sure. All commandline related stuff
>>> is in luainit.w, I think.
>>
>> I probably need to svn up, because I can only find luainit.c, no
>> luainit.w.
>>
>>> And now I suddenly see what is going wrong: your backslash is
>>> intercepted by the code that looks for "luatex \\relax ...".
>>
>> OK, you will probably know how to fix this better than I do (still
>> can't find that in the code).
>
> Should be fixed by #3621 (in branches/0.60.x/, so far) please try
> it out.

Thanks, I'll try to try and report back (I need to checkout the branch first).

>> Another question (two actually). In ex_selfdir function in luainit.c
>> you derive derive the directory of the executable from argv[0] using
>> SearchPath(). Is this intended (argv[0] might not correspond to the
>> actual executable) or are you actually after the real path of the
>> executable (in which case GetModuleFileName() should be used)?
>
> This is most probably on purpose. I inherited the current code from
> kpathsea, and I think it makes sense to do what kpathsea does in case
> someone wants to replace kpathsea by lua code (like Hans does).



More information about the dev-luatex mailing list