summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-03-12 13:16:07 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-03-12 13:16:07 +0200
commit1093435c84e2c1a559ea64c80efbf77950775b04 (patch)
treeb18a2a5dab188b8a0e6b3ebdd339dfc4007b4041
parentb2c0fdd69524d4eb97a5f0350fae195bf3c6c3fa (diff)
downloadluaotfload-1093435c84e2c1a559ea64c80efbf77950775b04.tar.gz
Check for windows not "not unix"
-rw-r--r--otfl-font-nms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index aa958ea..3239f0b 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -282,7 +282,7 @@ end
-- - a/../b -> b
-- - /cygdrive/a/b -> a:/b
local function path_normalize(path)
- if os.type ~= 'unix' then
+ if os.type == "windows" then
path = path:gsub('\\', '/')
path = path:lower()
end