summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-28 10:17:50 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-28 10:17:50 +0200
commit9c16f2f73eed3946020b0197d9fe97034c4f9f24 (patch)
tree3c60ef65c7d590856aadfd60ddbb54392dc6a846
parent84eec2bb9d4e33f5ceacd33ee38a7d686b9134eb (diff)
downloadluaotfload-9c16f2f73eed3946020b0197d9fe97034c4f9f24.tar.gz
workaround for non-ascii cache file names
-rw-r--r--luaotfload-override.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/luaotfload-override.lua b/luaotfload-override.lua
index 726000d..7ee9730 100644
--- a/luaotfload-override.lua
+++ b/luaotfload-override.lua
@@ -81,4 +81,10 @@ logs.names_report = function (mode, lvl, ...)
end
end
+--- This will vanish as soon as Hans fixes it in data-con
+--- https://github.com/lualatex/luaotfload/issues/17
+
+containers.cleanname = function (name)
+ return (string.gsub(string.lower(name),"[^%w%d\128\255]+","-"))
+end
-- vim:tw=71:sw=4:ts=4:expandtab