[lltx] luaotfload and OSFONTDIR

Reinhard Kotucha reinhard.kotucha at web.de
Mon Jul 25 21:02:43 CEST 2011


On 2011-07-25 at 18:35:24 +0200, Ulrike Fischer wrote:

 > if string.find(os.getenv("PATH"),";") then
 >     io.fileseparator, io.pathseparator = "\\", ";"
 > else
 >     io.fileseparator, io.pathseparator = "/" , ":"
 > end

BTW, it's not advisable to rely on assumptions.  A better test is 

  if os.type == "windows" then ....

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the lualatex-dev mailing list