From cd096cc8a8f77d3cb44c58f18aec46422c746c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Fri, 25 Jan 2019 16:50:08 +0800 Subject: [PATCH] Fix locale error due to missing compiled data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch hardcoded the locale variables to use the `C.UTF-8` locale which is the only locale that is available in the Ubuntu Core. Additional information: * The gettext-launch remote part - doc - snapcraft.io https://forum.snapcraft.io/t/the-gettext-launch-remote-part/9111 * The locales-launch remote part - doc - snapcraft.io https://forum.snapcraft.io/t/the-locales-launch-remote-part/8729 * Python cannot determine the locale used when inside a snap - snapcraft - snapcraft.io https://forum.snapcraft.io/t/python-cannot-determine-the-locale-used-when-inside-a-snap/9492 Signed-off-by: ๆž—ๅšไป(Buo-ren Lin) --- snap/snapcraft.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 22d78b13..b1f26a3a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -24,6 +24,9 @@ apps: - upower-observe - system-files - home + environment: + LANG: C.UTF-8 + LC_ALL: C.UTF-8 plugs: system-files: