Skip to content

Commit 2cc008b

Browse files
authored
Merge pull request kivy#1642 from inclement/set_LANG_in_python_recipe
Set $LANG in PythonRecipe
2 parents 44abbdd + 174b747 commit 2cc008b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,10 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
764764

765765
env['PYTHONNOUSERSITE'] = '1'
766766

767+
# Set the LANG, this isn't usually important but is a better default
768+
# as it occasionally matters how Python e.g. reads files
769+
env['LANG'] = "en_GB.UTF-8"
770+
767771
if not self.call_hostpython_via_targetpython:
768772
# sets python headers/linkages...depending on python's recipe
769773
python_name = self.ctx.python_recipe.name

0 commit comments

Comments
 (0)