[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix previous commit: Assign results to right field (1e6cb08)

Marcel Fabian Krüger tex at 2krueger.de
Mon Aug 19 16:48:11 CEST 2019


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/1e6cb083cf4cc8bf8bdbef33ce73a6d7a276ec85

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

commit 1e6cb083cf4cc8bf8bdbef33ce73a6d7a276ec85
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon Aug 19 16:48:11 2019 +0200

    Fix previous commit: Assign results to right field


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

1e6cb083cf4cc8bf8bdbef33ce73a6d7a276ec85
 src/luaotfload-database.lua                            | 4 ++--
 texmf/tex/latex-dev/luaotfload/luaotfload-database.lua | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 63bc0f9..67bc0a7 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -267,9 +267,9 @@ local sanitize_fontnames = function (rawnames)
             local target = { }
             for field, name in next, namedata do
                 if utf8len(name) then
-                    target [category] = alphnum_only(casefold(name, true))
+                    target [field] = alphnum_only(casefold(name, true))
                 else
-                    target [category] = stringgsub(stringlower(name), invalidchars, "")
+                    target [field] = stringgsub(stringlower(name), invalidchars, "")
                 end
             end
             result [category] = target
diff --git a/texmf/tex/latex-dev/luaotfload/luaotfload-database.lua b/texmf/tex/latex-dev/luaotfload/luaotfload-database.lua
index 63bc0f9..67bc0a7 100644
--- a/texmf/tex/latex-dev/luaotfload/luaotfload-database.lua
+++ b/texmf/tex/latex-dev/luaotfload/luaotfload-database.lua
@@ -267,9 +267,9 @@ local sanitize_fontnames = function (rawnames)
             local target = { }
             for field, name in next, namedata do
                 if utf8len(name) then
-                    target [category] = alphnum_only(casefold(name, true))
+                    target [field] = alphnum_only(casefold(name, true))
                 else
-                    target [category] = stringgsub(stringlower(name), invalidchars, "")
+                    target [field] = stringgsub(stringlower(name), invalidchars, "")
                 end
             end
             result [category] = target





More information about the latex3-commits mailing list