Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting REPL from Command Palette not working when path contains non ASCII characters on Windows #206

Merged
merged 1 commit into from
Jul 23, 2013

Commits on Jul 14, 2013

  1. Sets SUBLIMEREPL_DIR with unicode path

    Sets SUBLIMEREPL_DIR with a Unicode object representing
    the current working directory.
    
    The problem occures on Windows, when the path to SublimeREPL package folder contains non ASCII characters,
    and when we want through Command Pallete (Ctrl+Shift+P) select the approperiate language to open REPL.
    Error:
    	Traceback (most recent call last):
    	File ".\sublime_plugin.py", line 337, in run_
    	File ".\run_existing_command.py", line 31, in run
    	File ".\ntpath.py", line 108, in join
    	UnicodeDecodeError: 'ascii' codec can't decode byte 0x8e in position 9: ordinal not in range(128)
    
    In run_existing_command.py file, SUBLIMEREPL_DIR has been set by
    os.getcwd() which returns a string representing the current working directory.
    Solution to the problem is to return unicode object - os.getcwdu().
    ztepsic committed Jul 14, 2013
    Configuration menu
    Copy the full SHA
    6df7eb3 View commit details
    Browse the repository at this point in the history