Skip to content

Commit 4771b90

Browse files
committed
force utf-8 to avoid a pip issue
1 parent b89f5d6 commit 4771b90

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

make.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,10 @@ def _create_batch_scripts_initial(self):
877877
set WINPYVER="""
878878
+ self.winpyver
879879
+ r"""
880+
rem 2023-02-12 try utf-8 on console
881+
rem see https://github.com/pypa/pip/issues/11798#issuecomment-1427069681
882+
set PYTHONIOENCODING=utf-8
883+
880884
set HOME=%WINPYDIRBASE%\settings
881885
rem read https://github.com/winpython/winpython/issues/839
882886
rem set USERPROFILE=%HOME%
@@ -1032,6 +1036,10 @@ def _create_batch_scripts_initial(self):
10321036
$env:WINPYVER = '"""
10331037
+ self.winpyver
10341038
+ r"""'
1039+
# rem 2023-02-12 try utf-8 on console
1040+
# rem see https://github.com/pypa/pip/issues/11798#issuecomment-1427069681
1041+
$env:PYTHONIOENCODING = "utf-8"
1042+
10351043
$env:HOME = "$env:WINPYDIRBASE\settings"
10361044
10371045
# rem read https://github.com/winpython/winpython/issues/839

0 commit comments

Comments
 (0)