[luatex] package loaders

Manuel Pégourié-Gonnard mpg at elzevir.fr
Mon Mar 29 02:45:09 CEST 2010


Hi,

Here are two suggestions concerning the kpse package loaders, with patches.

1. Cosmetic change: cleaner error messages in case the file isn't found (or C
loading is disabled). This is errmsg.patch.

2. require"foo.bar" should look for "foo/bar" to be consistent with Lua
conventions (this is slashify.patch). Alternatively, it can look for "foo/bar"
first, and "foo.bar" as a fall-back, which is my preferred option (this is
slashify-or-not.patch).

Arguably, 2 could be done in Lua, but LuaTeX already modifies the loaders for
our convenience, so this additional modification doesn't add too much complexity
(or so I hope).

While we're at it, I'm quite surprised that package.loaders[4] is left
unaffected: it is not disabled in --safer mode, nor does it try to use kpse. I
have no opinion right now on how this loader such behave exactly, but it seems
strange that loader 3 is disabled in safer mode but not this one.

Thanks for your attention,
Manuel.

PS: all patches apply cleanly on trunk, and the slashify* patches supersede
errmsg.patch, if you choose to apply one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: errmsg.patch
Type: text/x-patch
Size: 1715 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20100329/4b34b0d6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slashify.patch
Type: text/x-patch
Size: 1889 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20100329/4b34b0d6/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slashify-or-not.patch
Type: text/x-patch
Size: 2483 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20100329/4b34b0d6/attachment-0002.bin>


More information about the luatex mailing list