Skip to content

Commit

Permalink
fix: Ensure LANG env is set in bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
sfayer committed Mar 19, 2022
1 parent 74a1520 commit dc52044
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 dc52044

Please sign in to comment.