summaryrefslogtreecommitdiff
path: root/luaotfload-legacy-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-22 14:10:51 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-22 14:10:51 -0700
commit00a2e2b6f095ba547dda795e263de9a5eb3f8f8f (patch)
treec08247d89db9980d05192f41d0843ea60843d75c /luaotfload-legacy-database.lua
parent1b1890c3b306e42a451465e64c5dbd8f0f094303 (diff)
parent6c1bb8b5c6de06598e28af43dd16e21b1741e56b (diff)
downloadluaotfload-00a2e2b6f095ba547dda795e263de9a5eb3f8f8f.tar.gz
Merge pull request #89 from phi-gamma/master
cygwin patch; import aux functions removed from fontspec into legacy codebase
Diffstat (limited to 'luaotfload-legacy-database.lua')
-rw-r--r--luaotfload-legacy-database.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/luaotfload-legacy-database.lua b/luaotfload-legacy-database.lua
index 4af05f5..b31fe88 100644
--- a/luaotfload-legacy-database.lua
+++ b/luaotfload-legacy-database.lua
@@ -425,7 +425,7 @@ local function path_normalize(path)
- reading symlinks under non-Win32
- using kpse.readable_file on Win32
]]
- if os.type == "windows" or os.type == "msdos" or os.name == "cygwin" then
+ if os.type == "windows" or os.type == "msdos" then
path = path:gsub('\\', '/')
path = path:lower()
path = path:gsub('^/cygdrive/(%a)/', '%1:/')
@@ -635,7 +635,7 @@ local function get_os_dirs()
"/System/Library/Fonts",
"/Network/Library/Fonts",
}
- elseif os.type == "windows" or os.type == "msdos" or os.name == "cygwin" then
+ elseif os.type == "windows" or os.type == "msdos" then
local windir = os.getenv("WINDIR")
return { file.join(windir, 'Fonts') }
else