summaryrefslogtreecommitdiff
path: root/luaotfload-fonts.lua
diff options
context:
space:
mode:
authorElie Roux <eroux@dedibox.ebzao.info>2010-01-20 16:20:12 +0100
committerElie Roux <eroux@dedibox.ebzao.info>2010-01-20 16:20:12 +0100
commitd21665d802ee47747dcc4b4e16d62c042d5e2c2f (patch)
treea0c33179fd7ebb02ec98e50acd3f753d93cd6c40 /luaotfload-fonts.lua
parent09093ef038f393ba643f0b18e7befc36d7394db1 (diff)
downloadluaotfload-d21665d802ee47747dcc4b4e16d62c042d5e2c2f.tar.gz
Mouahaha, I got you Windows!
Diffstat (limited to 'luaotfload-fonts.lua')
-rw-r--r--luaotfload-fonts.lua7
1 files changed, 3 insertions, 4 deletions
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