summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-30 16:42:57 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-30 17:07:22 +0300
commitda2ed485a3d0db1ad2e3bcf6c4b568b5020be746 (patch)
tree3a5563f93cf7d55168d4d5300c0f31dd877fef3a
parent59d003f00357dc794ac125d5dcfcacbc760737df (diff)
downloadluaotfload-da2ed485a3d0db1ad2e3bcf6c4b568b5020be746.tar.gz
Fix when a directory is passed to path_normalize
kpse.readable_file() returns nil if given a directory, so disable this check for now.
-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 e75b6c9..4050f26 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -483,7 +483,7 @@ local function path_normalize(path)
- using kpse.readable_file on Win32
--]]
if os.type == "windows" or os.type == "msdos" or os.name == "cygwin" then
- path = kpse.readable_file(path)
+-- path = kpse.readable_file(path)
path = path:gsub('\\', '/')
path = path:lower()
path = path:gsub('^/cygdrive/(%a)/', '%1:/')