summaryrefslogtreecommitdiff
path: root/src/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-11-22 00:28:33 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-11-22 00:43:49 +0100
commit70eae49c13abe5f01222da49c1c3c93e493083e0 (patch)
tree15c07a2617e85b6abed77139901e9216238bb252 /src/luaotfload-database.lua
parent91c97ddc438c225123cf50ae674931381c0fbf47 (diff)
downloadluaotfload-70eae49c13abe5f01222da49c1c3c93e493083e0.tar.gz
[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.
Diffstat (limited to 'src/luaotfload-database.lua')
-rw-r--r--src/luaotfload-database.lua2
1 files changed, 1 insertions, 1 deletions
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--