mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-12 07:59:01 +00:00
Added python unicode encoding warning on unicode Powershell console.
parent
f2af7b52f9
commit
2e3869ac7f
@ -33,6 +33,18 @@ Put this in your Powershell `$PROFILE` on Windows:
|
|||||||
iex "$(thefuck --alias)"
|
iex "$(thefuck --alias)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To overcome Python unicode warnings on your unicode Powershell console:
|
||||||
|
```
|
||||||
|
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)
|
||||||
|
```
|
||||||
|
|
||||||
|
Add this line **before** the line above in your Powershell `$PROFILE` on Windows:
|
||||||
|
|
||||||
|
```
|
||||||
|
$env:PYTHONIOENCODING="utf-8"
|
||||||
|
```
|
||||||
|
|
||||||
# tcsh
|
# tcsh
|
||||||
|
|
||||||
```tcsh
|
```tcsh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user