Skip to content

Commit 3b5d2e3

Browse files
authored
Merge pull request #337 from drpebcak/python-encoding
2 parents c861cb0 + 1879d18 commit 3b5d2e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/repos/runtimes/python/python.go

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ func (r *Runtime) Setup(ctx context.Context, dataRoot, toolSource string, env []
134134
}
135135

136136
newEnv := runtimeEnv.AppendPath(env, venvBinPath)
137+
if runtime.GOOS == "windows" && os.Getenv("PYTHONIOENCODING") == "" {
138+
newEnv = append(newEnv, "PYTHONIOENCODING=utf-8")
139+
}
137140
newEnv = append(newEnv, "VIRTUAL_ENV="+venvPath)
138141

139142
if runtime.GOOS == "windows" {

0 commit comments

Comments
 (0)