瀏覽代碼

atom: ensure LANG for some subprocesses

Kyle P Davis 9 年之前
父節點
當前提交
2817b1c7da
共有 1 個文件被更改,包括 2 次插入0 次删除
  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