From d21665d802ee47747dcc4b4e16d62c042d5e2c2f Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Wed, 20 Jan 2010 16:20:12 +0100 Subject: Mouahaha, I got you Windows! --- luaotfload-fonts.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'luaotfload-fonts.lua') diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua index afcf37a..849d522 100644 --- a/luaotfload-fonts.lua +++ b/luaotfload-fonts.lua @@ -274,10 +274,9 @@ local function append_fccatdirs(fontdirs) local path = kpse.expand_var("$TEXMFMAIN")..'/../bin/win32/fc-cat.exe' if lfs.isfile(path) then log(1, "executing `%s' -v\n", path) - -- This line doesn't work at all, it replaces a space by a \n, can't understand why... - -- the bug should be reported somewhere... TeXLive or LuaTeX? - --local data = io.popen(string.format("%s -v", path), 'r') - local data = io.popen(path.." -v", 'r') + -- dirty hack... + path = io.popen(string.format('cygpath.exe -C ANSI -w -s "%s"', path)):read("*all") + local data = io.popen('"'..path..' -v"', 'r') local result = read_fcdata(fontdirs, data, windows_translate) data:close() if result then -- cgit v1.2.3