Skip to content

Commit

Permalink
Merge pull request #54 from sfayer/fix-lang
Browse files Browse the repository at this point in the history
Ensure LANG env is set in bashrc
  • Loading branch information
fstagni authored Mar 21, 2022
2 parents 74a1520 + dc52044 commit f7afc42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dirac-install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,6 +2087,8 @@ def createBashrc():
'export PYTHONOPTIMIZE=x']
if 'HOME' in os.environ:
lines.append('[ -z "$HOME" ] && export HOME=%s' % os.environ['HOME'])
# We also need to ensure LANG is set for py2 unicode support
lines.append('[ -z "$LANG" ] && export LANG=en_US.UTF-8')

# Helper function for checking dirs
lines.extend(['# Function check if folder exist and contins files',
Expand Down

0 comments on commit f7afc42

Please sign in to comment.