Don't set en_US.UTF-8 on Windows when setLocale is false

Fixes #58015
This commit is contained in:
Daniel Imms
2018-09-19 12:28:40 -07:00
parent 67649d3923
commit dbdbbe5259
4 changed files with 16 additions and 7 deletions

View File

@@ -392,7 +392,7 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
// Continue env initialization, merging in the env from the launch
// config and adding keys that are needed to create the process
const locale = terminalConfig.get('setLocaleVariables') ? platform.locale : undefined;
terminalEnvironment.addTerminalEnvironmentKeys(env, locale);
terminalEnvironment.addTerminalEnvironmentKeys(env, platform.isWindows, locale);
// Fork the process and listen for messages
this._logService.debug(`Terminal process launching on ext host`, shellLaunchConfig, initialCwd, cols, rows, env);