diff --git a/make.py b/make.py index d453f433..65b6f5f9 100644 --- a/make.py +++ b/make.py @@ -877,6 +877,10 @@ def _create_batch_scripts_initial(self): set WINPYVER=""" + self.winpyver + r""" +rem 2023-02-12 try utf-8 on console +rem see https://github.com/pypa/pip/issues/11798#issuecomment-1427069681 +set PYTHONIOENCODING=utf-8 + set HOME=%WINPYDIRBASE%\settings rem read https://github.com/winpython/winpython/issues/839 rem set USERPROFILE=%HOME% @@ -1032,6 +1036,10 @@ def _create_batch_scripts_initial(self): $env:WINPYVER = '""" + self.winpyver + r"""' +# rem 2023-02-12 try utf-8 on console +# rem see https://github.com/pypa/pip/issues/11798#issuecomment-1427069681 +$env:PYTHONIOENCODING = "utf-8" + $env:HOME = "$env:WINPYDIRBASE\settings" # rem read https://github.com/winpython/winpython/issues/839