3.5 broke Python "failed to get the locale encoding"
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.5.0
- OS version: 14.5
- Attach
~/Library/Preferences/com.googlecode.iterm2.plisthere (drag-drop from finder into this window) - com.googlecode.iterm2.plist
- Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.
Detailed steps to reproduce the problem
- I upgraded iTerm 2 to 3.5.0
- I cannot start
pythonin a direnv-ed dir, I get the following error:
Fatal Python error: config_get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed
Python runtime state: preinitialized
What happened
Get error
What should have happened
Python should open
I had to revert to 3.4.x because I need to work. If you need more information I can try to put back 3.5 with a different name or something.
Also, I noticed LC_CTYPE=UTF-8 is present on 3.4.x and is missing on 3.5.0, but LANG (?) was present on 3.5.0?
Edited by Zsolt Ero