From 13376bdd571b0ade268ea8ef9d36892d5dd891a8 Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Mon, 6 Mar 2023 15:44:17 +0000 Subject: [PATCH] Normalise .enc files (see #284) --- CHANGELOG.md | 1 + l3build-check.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c600ef9b..1081474a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers. ### Changed - Generalize normalization of ghostscript version in PDF-based tests - Include UNIX timestamps in generated ZIP files +- Normalize pdfTeX `.enc` file loading ## [2023-02-26] diff --git a/l3build-check.lua b/l3build-check.lua index b15c17ef..e7569b69 100644 --- a/l3build-check.lua +++ b/l3build-check.lua @@ -156,6 +156,10 @@ local function normalize_log(content,engine,errlevels) if match(line, "^%.+\\XeTeX.?.?.?file") then line = gsub(line, pattern, "../%1") end + -- pdfTeX .enc files + if match(line, "%.enc%}") then + line = gsub(line,"%{" .. pattern .. "%}","") + end -- Deal with dates if match(line, "[^<]%d%d%d%d[/%-]%d%d[/%-]%d%d") then line = gsub(line,"%d%d%d%d[/%-]%d%d[/%-]%d%d","....-..-..")