From da2ed485a3d0db1ad2e3bcf6c4b568b5020be746 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 30 May 2010 16:42:57 +0300 Subject: Fix when a directory is passed to path_normalize kpse.readable_file() returns nil if given a directory, so disable this check for now. --- otfl-font-nms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:/') -- cgit v1.2.3