[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix luaotfload-tool --list with empty condition (32b5616)

Marcel Fabian Krüger tex at 2krueger.de
Tue May 5 15:03:43 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/32b5616dba670bf1288958ecd53513aa8720d5e3

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

commit 32b5616dba670bf1288958ecd53513aa8720d5e3
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue May 5 15:02:50 2020 +0200

    Fix luaotfload-tool --list with empty condition


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

32b5616dba670bf1288958ecd53513aa8720d5e3
 src/luaotfload-tool.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-tool.lua b/src/luaotfload-tool.lua
index aa9bdf0..31650f6 100755
--- a/src/luaotfload-tool.lua
+++ b/src/luaotfload-tool.lua
@@ -1334,7 +1334,6 @@ function actions.list (job)
     else
         criterion = stringexplode(criterion, ":") --> { field, value }
         local asked_value  = criterion[2]
-        local sane_asked_pattern = sane_pattern(criterion[2])
         criterion          = criterion[1]
         asked_fields       = set_primary_field(asked_fields, criterion)
 
@@ -1343,6 +1342,7 @@ function actions.list (job)
         --- firstly, build a list of fonts to operate on
         local targets = { }
         if asked_value then --- only those whose value matches
+            local sane_asked_pattern = sane_pattern(asked_value)
             logreport (false, 2, "list", "Restricting to value %s", asked_value)
             for i=1, nmappings do
                 local entry = mappings[i]





More information about the latex3-commits mailing list.