1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-03 16:42:03 +00:00

Added link to python io unicode warning issue.

Tuk
2017-12-20 11:50:42 +01:00
parent 2e3869ac7f
commit 4853c7e877

@@ -33,15 +33,15 @@ Put this in your Powershell `$PROFILE` on Windows:
iex "$(thefuck --alias)" iex "$(thefuck --alias)"
``` ```
To overcome Python unicode warnings on your unicode Powershell console: To overcome Python unicode [warning](https://github.com/nvbn/thefuck/issues/514) on your unicode Powershell console:
``` ```powershell
c:\python3\lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'ascii', readline hook consumer may assume they are the same c:\python3\lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'ascii', readline hook consumer may assume they are the same
readline_hook.enable(use_pyreadline=use_pyreadline) readline_hook.enable(use_pyreadline=use_pyreadline)
``` ```
Add this line **before** the line above in your Powershell `$PROFILE` on Windows: Add this line **before** the line above in your Powershell `$PROFILE` on Windows:
``` ```powershell
$env:PYTHONIOENCODING="utf-8" $env:PYTHONIOENCODING="utf-8"
``` ```