Jump to content

Open Sublime projects


Recommended Posts

Rather than encoding the query back to UTF-8, it'd be better to run the results of subprocess.check_output() through Workfow.decode().

The issue is that there are multiple ways to represent, say, ü in Unicode (and UTF-8), and Python considers them unequal. Python uses a different representation than OS X by default.

It's therefore possible for a user to enter, say, motörhead but it won't match a file called Motörhead.sublime-project. Workflow.decode(), which is automatically called on Workflow.args, ensures everything uses the same representation.

Edited by deanishe
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...