From 0fddc74a3f9add47841124b4d77b097f4646d14f Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 30 Oct 2022 01:05:45 +0200 Subject: compiler: fix support for non-utf8 terminals The compiler echoes the names of the files being processed. Those file names may contain UTF-8 characters. However, some consoles may not support those. This is notably the case of the Windows CMD or on Linux with the legacy C locale. This caused the following error: ldgallery: : commitBuffer: invalid argument (invalid character) This patch adds automatic transliteration when a non-UTF8 terminal is detected, so that neither the compiler or the terminal crash due to UTF8 characters. GitHub: closes #341 --- compiler/package.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/package.yaml') diff --git a/compiler/package.yaml b/compiler/package.yaml index 7bd86e9..0c07efe 100644 --- a/compiler/package.yaml +++ b/compiler/package.yaml @@ -4,7 +4,7 @@ homepage: https://ldgallery.pacien.org github: "pacien/ldgallery" license: AGPL-3 author: "Pacien TRAN-GIRARD, Guillaume FOUET" -copyright: "2019-2021 Pacien TRAN-GIRARD, Guillaume FOUET" +copyright: "2019-2022 Pacien TRAN-GIRARD, Guillaume FOUET" extra-source-files: - readme.md @@ -29,6 +29,7 @@ dependencies: - safe - time - process +- with-utf8 default-extensions: - DuplicateRecordFields -- cgit v1.2.3 From 63ff07fe7f4168ac6655df755c3f5f8c4c2be10e Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 1 Dec 2022 20:03:29 +0100 Subject: project: fix licence spdx identifier --- compiler/package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/package.yaml') diff --git a/compiler/package.yaml b/compiler/package.yaml index 0c07efe..04cafd4 100644 --- a/compiler/package.yaml +++ b/compiler/package.yaml @@ -2,7 +2,7 @@ name: ldgallery-compiler version: 2.1 homepage: https://ldgallery.pacien.org github: "pacien/ldgallery" -license: AGPL-3 +license: AGPL-3.0-only author: "Pacien TRAN-GIRARD, Guillaume FOUET" copyright: "2019-2022 Pacien TRAN-GIRARD, Guillaume FOUET" -- cgit v1.2.3 From 922481cfd39543128396dca05c7a83588bcd332e Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 1 Dec 2022 20:00:12 +0100 Subject: compiler: fix build for ghc 9.2 --- compiler/package.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/package.yaml') diff --git a/compiler/package.yaml b/compiler/package.yaml index 04cafd4..539bf9d 100644 --- a/compiler/package.yaml +++ b/compiler/package.yaml @@ -33,6 +33,8 @@ dependencies: default-extensions: - DuplicateRecordFields +- DisambiguateRecordFields +- OverloadedRecordDot - DeriveGeneric - DeriveDataTypeable - DeriveAnyClass -- cgit v1.2.3 From d266ee66cf3e366fbeb6d92c03dedff3b7aa3f14 Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 16 Feb 2023 22:54:42 +0100 Subject: Revert "compiler: fix support for non-utf8 terminals" The reverted changeset fixed some crash due to character encoding mismatch in terminal emulators. Doing so, it made it possible for the compiler to complete without reporting any error, while outputting wrongly encoded files. It's better to revert that changeset until all the encoding issue are solved consistently. This reverts commit 0fddc74a3f9add47841124b4d77b097f4646d14f. --- compiler/package.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/package.yaml') diff --git a/compiler/package.yaml b/compiler/package.yaml index 539bf9d..4b749e1 100644 --- a/compiler/package.yaml +++ b/compiler/package.yaml @@ -4,7 +4,7 @@ homepage: https://ldgallery.pacien.org github: "pacien/ldgallery" license: AGPL-3.0-only author: "Pacien TRAN-GIRARD, Guillaume FOUET" -copyright: "2019-2022 Pacien TRAN-GIRARD, Guillaume FOUET" +copyright: "2019-2021 Pacien TRAN-GIRARD, Guillaume FOUET" extra-source-files: - readme.md @@ -29,7 +29,6 @@ dependencies: - safe - time - process -- with-utf8 default-extensions: - DuplicateRecordFields -- cgit v1.2.3 From e939712a284dff9af6d81cc1fcd4e7f7ec9ad503 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 17 Feb 2023 22:52:05 +0100 Subject: project: release v2.2 --- compiler/package.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/package.yaml') diff --git a/compiler/package.yaml b/compiler/package.yaml index 4b749e1..d7c07e9 100644 --- a/compiler/package.yaml +++ b/compiler/package.yaml @@ -1,10 +1,10 @@ name: ldgallery-compiler -version: 2.1 +version: 2.2 homepage: https://ldgallery.pacien.org github: "pacien/ldgallery" license: AGPL-3.0-only author: "Pacien TRAN-GIRARD, Guillaume FOUET" -copyright: "2019-2021 Pacien TRAN-GIRARD, Guillaume FOUET" +copyright: "2019-2023 Pacien TRAN-GIRARD, Guillaume FOUET" extra-source-files: - readme.md -- cgit v1.2.3