Skip to content

Commit

Permalink
Skip setting PYTHONUTF8 when activating terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Oct 13, 2023
1 parent 6c23e43 commit ce070d3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,12 @@ function shouldPS1BeSet(type: PythonEnvType | undefined, env: EnvironmentVariabl
}

function shouldSkip(env: string) {
return ['_', 'SHLVL'].includes(env);
return [
'_',
'SHLVL',
// Even though this maybe returned, setting it can result in output encoding errors
'PYTHONUTF8'
].includes(env);
}

function getPromptForEnv(interpreter: PythonEnvironment | undefined) {
Expand Down

0 comments on commit ce070d3

Please sign in to comment.