[latex3-commits] [git/LaTeX3-latex3-luaotfload] harfnode-dev: Work around null-byte problem (5ba08dc)

Marcel Fabian Krüger tex at 2krueger.de
Fri Oct 25 18:59:04 CEST 2019


Repository : https://github.com/latex3/luaotfload
On branch  : harfnode-dev
Link       : https://github.com/latex3/luaotfload/commit/5ba08dcf5e86c9e018fc77a1339926ddf7201c08

>---------------------------------------------------------------

commit 5ba08dcf5e86c9e018fc77a1339926ddf7201c08
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Oct 25 18:59:04 2019 +0200

    Work around null-byte problem


>---------------------------------------------------------------

5ba08dcf5e86c9e018fc77a1339926ddf7201c08
 src/luaotfload-harf-plug.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index cfa54d6..b85109c 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -946,7 +946,7 @@ local utfchar = utf8.char
 local function get_glyph_info(n)
   n = todirect(n)
   local props = properties[n]
-  return props and props.glyph_info or utfchar(getchar(n))
+  return props and props.glyph_info or utfchar(getchar(n)):gsub('\0', '^^@')
 end
 
 fonts.handlers.otf.registerplugin('harf', process)





More information about the latex3-commits mailing list