Skip to content

Commit

Permalink
CI: Mess with LANG or LC_ALL only on non-Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 13, 2020
1 parent 0935765 commit 20b6b8f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cr8/run_crate.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,12 @@ def __init__(self,
else:
java_home = os.environ.get('JAVA_HOME', '')
self.env.setdefault('JAVA_HOME', java_home)
self.env.setdefault('LANG',
os.environ.get('LANG', os.environ.get('LC_ALL')))
if not self.env['LANG']:
raise SystemExit('Your locale are not configured correctly. '
'Please set LANG or alternatively LC_ALL.')
if sys.platform != "win32":
self.env.setdefault('LANG',
os.environ.get('LANG', os.environ.get('LC_ALL')))
if not self.env['LANG']:
raise SystemExit('Your locale are not configured correctly. '
'Please set LANG or alternatively LC_ALL.')
self.monitor = OutputMonitor()
self.process = None # type: Optional[subprocess.Popen]
self.http_url = None # type: Optional[str]
Expand Down

0 comments on commit 20b6b8f

Please sign in to comment.