From 70eae49c13abe5f01222da49c1c3c93e493083e0 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 22 Nov 2015 00:28:33 +0100 Subject: [db] fix search path construction on Win hosts This seems to help with the examples from #165 that rely on setting ``$OPENTYPEFONTS`` via the environment. Referencing a non-existing value caused a branch to always pick Unix path separators. The affair was pretty insidious since the paths we received from kpse were sane so the behavior was only triggered with manual overrides. --- src/luaotfload-database.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/luaotfload-database.lua') diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua index cc8549e..35450b5 100644 --- a/src/luaotfload-database.lua +++ b/src/luaotfload-database.lua @@ -2177,7 +2177,7 @@ local filter_out_pwd = function (dirs) return result end -local path_separator = ostype == "windows" and ";" or ":" +local path_separator = os.type == "windows" and ";" or ":" --[[doc-- -- cgit v1.2.3