◐ Shell
clean mode source ↗

build: use LC_ALL of C for maximum compatibility · nodejs/node@b044256

Original file line numberDiff line numberDiff line change

@@ -672,10 +672,7 @@ def get_xcode_version(cc):

672672

def get_gas_version(cc):

673673

try:

674674

custom_env = os.environ.copy()

675-

# smartos (a.k.a. sunos5) does not have the en_US locale, and will give:

676-

# `setlocale: LC_ALL: cannot change locale (en_US): Invalid argument`

677-

if 'sunos' not in sys.platform:

678-

custom_env["LC_ALL"] = "en_US"

675+

custom_env["LC_ALL"] = "C"

679676

proc = subprocess.Popen(shlex.split(cc) + ['-Wa,-v', '-c', '-o',

680677

'/dev/null', '-x',

681678

'assembler', '/dev/null'],