Line
Link Here
|
0 |
-- pym/portage/package/ebuild/config.py |
0 |
++ pym/portage/package/ebuild/config.py |
Lines 1-4
Link Here
|
1 |
# Copyright 2010-2015 Gentoo Foundation |
1 |
# Copyright 2010-2016 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
from __future__ import unicode_literals |
4 |
from __future__ import unicode_literals |
Lines 2790-2796
Link Here
|
2790 |
if eapi_attrs.posixish_locale: |
2790 |
if eapi_attrs.posixish_locale: |
2791 |
split_LC_ALL(mydict) |
2791 |
split_LC_ALL(mydict) |
2792 |
mydict["LC_COLLATE"] = "C" |
2792 |
mydict["LC_COLLATE"] = "C" |
2793 |
if not check_locale(silent=True, env=mydict): |
2793 |
# check_locale() returns None when check can not be executed. |
|
|
2794 |
if check_locale(silent=True, env=mydict) is False: |
2794 |
# try another locale |
2795 |
# try another locale |
2795 |
for l in ("C.UTF-8", "en_US.UTF-8", "en_GB.UTF-8", "C"): |
2796 |
for l in ("C.UTF-8", "en_US.UTF-8", "en_GB.UTF-8", "C"): |
2796 |
mydict["LC_CTYPE"] = l |
2797 |
mydict["LC_CTYPE"] = l |