From c2990143ab436d50687847b6b07de2dcae1e239b Mon Sep 17 00:00:00 2001 From: dejitaiza Date: Fri, 10 Apr 2015 10:55:41 +0200 Subject: [PATCH] Invalid multibyte escape sequence fix --- bin/textmate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/textmate b/bin/textmate index a09ff43..d4f7666 100755 --- a/bin/textmate +++ b/bin/textmate @@ -227,7 +227,7 @@ class TextmateInstaller < Thor # Copied from http://macromates.com/svn/Bundles/trunk/Support/lib/escape.rb # escape text to make it useable in a shell script as one “word” (string) def e_sh(str) - str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF\n])/, '\\').gsub(/\n/, "'\n'").sub(/^$/, "''") + str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF\n])/n, '\\').gsub(/\n/, "'\n'").sub(/^$/, "''") end def url_escape(str)