View Issue Details

IDProjectCategoryView StatusLast Update
0000296luatexluatex bugpublic2009-11-18 16:55
ReporterpatrickAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.44.0 
Target VersionFixed in Version0.45.0 
Summary0000296: package.path broken
DescriptionIn contradiction to the luatex reference manual (3.1.1) and in contradiction to the lua reference manual (http://www.lua.org/manual/5.1/manual.html#pdf-package.path) the package.path does not work. This breaks all existing lua scripts that rely on the Lua standard mechanism for path searching.

Example:

root/bin/helloworld.lua:

#!/usr/bin/env texlua

if arg[0]:sub(1,1) ~= "/" then arg[0] = lfs.currentdir() .. "/" .. arg[0] end
local installdir=arg[0]:gsub("/%./","/"):gsub("(%w+)/bin/[^/]+$","%1")

package.path = installdir .. "/dir/?.lua"
require("foobar")

breaks, even if foobar.lua is in root/dir/foobar.lua.


Please bring back package.path
TagsNo tags attached.

Activities

Taco

2009-11-09 14:25

administrator   ~0000327

First: the luatex supercedes the lua manual. When they differ, the luatexref-t.pdf is leading, not the other way around.

And besides: commit #3097 should resolve this issue.

Issue History

Date Modified Username Field Change
2009-11-09 13:46 patrick New Issue
2009-11-09 14:25 Taco Note Added: 0000327
2009-11-09 14:25 Taco Status new => resolved
2009-11-09 14:25 Taco Resolution open => fixed
2009-11-18 16:54 Taco Fixed in Version => 0.45.0
2009-11-18 16:55 Taco Status resolved => closed