T T wrote:
On 15 March 2010 12:03, Taco Hoekwater <[email protected]> wrote:
Oh, alright then. Patch applied (#3494)

Thanks. One more patch for your consideration for something I needed
recently: getting absolute, canonical file paths. In principle this
can be implemented in pure Lua with the current lfs module, but
getting all the corner cases right (e.g. foo/bar/./../baz) is not so
easy. Perhaps having a convenience function for this is not such a bad
idea (and using proper system APIs will guarantee that the result is
correct).

There is no Unix counterpart in the patch, because I didn't know how
to implement it (with a call to realpath?) and I would have no way to
test it anyway.

My man page for realpath(3) says:

BUGS:
  Avoid using this function. Its is broken by design

But it does not offer an alternate solution.

Looks like it would need private code, which is not a lot of fun to
write (unless there is something in kpathsea?).



_______________________________________________
dev-luatex mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to