From 0f573a5368e82f336d95ca335e29a047457bf081 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel <albert@zeitkraut.de> Date: Sun, 19 Jun 2022 14:00:10 +0200 Subject: [PATCH] Require hslua-2.2.1, unless lua53 flag is set. This fixes a problem where the encoding used for Lua filenames would sometimes mismatch the encoding used by the OS. The file wasn't found when that happened, for example with an umlaut-containing filename on Windows. The change ensures that all characters of available in the default locale can be used in the filename. --- pandoc.cabal | 2 +- stack.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pandoc.cabal b/pandoc.cabal index 32208527a..aae415275 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -542,7 +542,7 @@ library build-depends: hslua >= 2.1 && < 2.2, hslua-aeson >= 2.1 && < 2.3 else - build-depends: hslua >= 2.2 && < 2.3 + build-depends: hslua >= 2.2.1 && < 2.3 if flag(embed_data_files) cpp-options: -DEMBED_DATA_FILES other-modules: Text.Pandoc.Data diff --git a/stack.yaml b/stack.yaml index 8b0f98526..47b366879 100644 --- a/stack.yaml +++ b/stack.yaml @@ -11,19 +11,19 @@ extra-deps: - skylighting-0.12.3.1 - emojis-0.1.2 - lpeg-1.0.3 -- hslua-2.2.0 +- hslua-2.2.1 - hslua-aeson-2.2.0 - hslua-classes-2.2.0 -- hslua-core-2.2.0 -- hslua-marshalling-2.2.0 +- hslua-core-2.2.1 +- hslua-marshalling-2.2.1 - hslua-module-doclayout-1.0.4 - hslua-module-path-1.0.2 - hslua-module-system-1.0.2 - hslua-module-text-1.0.2 - hslua-module-version-1.0.2 -- hslua-objectorientation-2.2.0 -- hslua-packaging-2.2.0 -- lua-2.2.0 +- hslua-objectorientation-2.2.1 +- hslua-packaging-2.2.1 +- lua-2.2.1 - lua-arbitrary-1.0.1 - tasty-hslua-1.0.2 - tasty-lua-1.0.2