diff options
author | Aaron Kling <webgeek1234@gmail.com> | 2018-08-07 19:21:36 -0500 |
---|---|---|
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2018-08-22 09:30:00 +0200 |
commit | 7f042fddf5c5a84a1ac23368339d6bc752e2651a (patch) | |
tree | 67f6c15f1037faf416217a366bf0902002dcdd37 /ui | |
parent | 54181ebe3b69772f56872889f3d3462ed8fe9c1b (diff) | |
download | build_soong-7f042fddf5c5a84a1ac23368339d6bc752e2651a.tar.gz build_soong-7f042fddf5c5a84a1ac23368339d6bc752e2651a.tar.bz2 build_soong-7f042fddf5c5a84a1ac23368339d6bc752e2651a.zip |
locale: add C.utf8
Several Linux distros use utf8 instead of UTF-8
Change-Id: I7e3dd73ec89bc34d7f2dc1834082cc90f9521ad1
Diffstat (limited to 'ui')
-rw-r--r-- | ui/build/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/build/config.go b/ui/build/config.go index eef67cb9..a54ed82b 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -284,6 +284,9 @@ func (c *configImpl) configureLocale(ctx Context) { // for others) if inList("C.UTF-8", locales) { c.environ.Set("LANG", "C.UTF-8") + } else if inList("C.utf8", locales) { + // These normalize to the same thing + c.environ.Set("LANG", "C.UTF-8") } else if inList("en_US.UTF-8", locales) { c.environ.Set("LANG", "en_US.UTF-8") } else if inList("en_US.utf8", locales) { |