Browse Source

atom: ensure LANG for some subprocesses

Kyle P Davis 8 years ago
parent
commit
2817b1c7da
1 changed files with 2 additions and 0 deletions
  1. 2 0
      atom/init.coffee

+ 2 - 0
atom/init.coffee

@@ -16,3 +16,5 @@ process.env.GOPATH = process.env.HOME + '/go'
 
 
 # Remove problematic environment variables that interfere with sub-shells
 # Remove problematic environment variables that interfere with sub-shells
 delete process.env[k] for k of process.env when k.startsWith('BASH_FUNC_')
 delete process.env[k] for k of process.env when k.startsWith('BASH_FUNC_')
+# Ensure LANG is set for subprocesses
+process.env.LANG = 'en_US.UTF-8' unless process.env.LANG