From beee9b22cadead5066b58c0bb67047d142f7c6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Sun, 2 Aug 2020 16:55:45 +0800 Subject: [PATCH] Fix snap distribution unable to process scripts in Unicode(Chinese) (fixes #1643) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The snap runtime only supports C.UTF-8 locale, as other locales don't seem to be used now just hardcode it. Fixes #1643. Signed-off-by: ๆž—ๅšไป(Buo-ren, Lin) --- snap/snapcraft.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 8365b13..2dc4831 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -31,6 +31,8 @@ apps: shellcheck: command: usr/bin/shellcheck plugs: [home, removable-media] + environment: + LANG: C.UTF-8 parts: shellcheck: