diff options
author | 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com> | 2019-01-25 16:50:08 +0800 |
---|---|---|
committer | 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com> | 2019-01-26 02:51:41 +0800 |
commit | cd096cc8a8f77d3cb44c58f18aec46422c746c78 (patch) | |
tree | 41f86c796c49168b0da0ab0e57c4684ded0dd83f /snap | |
parent | 2529c66fe4d89b7c0bc529efffc0778e9b15c5a5 (diff) |
Fix locale error due to missing compiled data
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) <Buo.Ren.Lin@gmail.com>
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
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: |