You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running ShellCommand on Windows with a different locale to English has encoding issues if the output of the shell command includes non-ascii characters.
Exception in thread Thread-5:
Traceback (most recent call last):
File "./threading.py", line 901, in _bootstrap_inner
File "./threading.py", line 858, in run
File "OsShell in C:\Users\user\AppData\Roaming\Sublime Text 3\Installed Packages\ShellCommand.sublime-package", line 118, in _process
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 11: invalid start byte
The problem originates from the line 118 in OsShell.py
The method decode() is used without encoding parameter set and the default, which is utf8, is used. If the system is not utf8 base, it causes problems. Instead, it should have been something like:
Hello.
Running ShellCommand on Windows with a different locale to English has encoding issues if the output of the shell command includes non-ascii characters.
Exception in thread Thread-5:
Traceback (most recent call last):
File "./threading.py", line 901, in _bootstrap_inner
File "./threading.py", line 858, in run
File "OsShell in C:\Users\user\AppData\Roaming\Sublime Text 3\Installed Packages\ShellCommand.sublime-package", line 118, in _process
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 11: invalid start byte
The problem originates from the line 118 in OsShell.py
The method decode() is used without encoding parameter set and the default, which is utf8, is used. If the system is not utf8 base, it causes problems. Instead, it should have been something like:
Or, at least, the encoding should be changeable by configuration.
The text was updated successfully, but these errors were encountered: