73rhodes / Sublime-JSLint

JSLint for Sublime Text 2 and 3.
80 stars 14 forks source link

UnicodeDecodeError #10

Closed fortnum closed 11 years ago

fortnum commented 11 years ago

Under Windows 7 64-bit I have the Packages folder under %APPDATA%. And the %APPDATA% is under the folder with my windows user account name. My user account name is in russian letters, and I suppose that is the cause of the problem I have.

Whenever I press ctrl+l or using any other valid method of running your JSLint plugin, I have an empty tool window at bottom, and the following log in Sublime Text 2 console:

Running node C:\Users{my russian-letters user folder name here}\AppData\Roaming\Sublime Text 2\Packages/JSLint/linter.js --sloppy --indent 2 --node --nomen --vars --plusplus --stupid --todo C:\Aptana Studio 3 Workspace\Hello World\test.js Traceback (most recent call last): File ".\sublimeplugin.py", line 337, in run File ".\exec.py", line 154, in run File ".\exec.py", line 45, in init UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1351: ordinal not in range(128)

I just become acquainted with Sublime Text and Python either. Please help me to get over the problem.

PS. Just posted the same issue on Sublime Forum: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=12185

darrenderidder commented 11 years ago

I haven't tested this but from the error message this appears to be a Sublime issue rather than a plugin issue.

fortnum commented 11 years ago

The problem has been solved at Sublime Forum through two fixes to exec.py file.

darrenderidder commented 11 years ago

Thanks for updating the issue.