I have a prompt, PS1, environment variable containing a unicode character (\u2192). This is causing ST2 to barf with a decode error:
Traceback (most recent call last):
File “./sublime_plugin.py”, line 230, in run_
File “./exec.py”, line 145, in run
File “./exec.py”, line 42, in init
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 109: ordinal not in range(128)
The offending line appears to be inside code that is attempting to expand path variables in ALL environment variables as such:
os.path.expandvars(v).encode(sys.getfilesystemencoding())
which ends up executing the equivalent of:
os.path.expandvars(“➜”).encode(“utf-8”)
which goes boom!
Cheers,
Simon