Skip to content

Commit 1879d18

Browse files
committed
fix: set encoding for python tools to utf-8
Signed-off-by: Taylor Price <[email protected]>
1 parent c861cb0 commit 1879d18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/repos/runtimes/python/python.go

Lines changed: 3 additions & 0 deletions
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)