Skip to content

Commit 8a94f5b

Browse files
authored
chore: fix update_api.sh script on Windows (microsoft#2044)
1 parent 8838e31 commit 8a94f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update_api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function update_api {
66
generate_script="$2"
77
git checkout HEAD -- "$file_name"
88

9-
if python "$generate_script" > .x; then
9+
if PYTHONIOENCODING=utf-8 python "$generate_script" > .x; then
1010
mv .x "$file_name"
1111
pre-commit run --files $file_name
1212
echo "Regenerated APIs"

0 commit comments

Comments
 (0)