Skip to content

Instantly share code, notes, and snippets.

@ggilder
Created November 3, 2010 22:35
Show Gist options
  • Save ggilder/661837 to your computer and use it in GitHub Desktop.
Save ggilder/661837 to your computer and use it in GitHub Desktop.
Fix TextMate's scriptmate.rb to work with Ruby 1.9
# located at /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb
# change lines 12 - 13:
$KCODE = 'u' if (RUBY_VERSION.to_f < 1.9)
require "jcode" unless "".respond_to? :each_char
# rest of the file is unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment