[SVN] Re: executor.rb: Changes for Ruby 1.9

Charles Turner vze26m98 at optonline.net
Fri Aug 29 11:01:06 UTC 2008


On Thu, 28 Aug 2008 15:43:15 -0500, James Gray wrote:
> On Aug 28, 2008, at 3:34 PM, Charles Turner wrote:
> 
>> On Thu, 28 Aug 2008 14:48:37 -0500, James Gray wrote:
>>> This patch loads jcode, but doesn't call any jcode methods.  We  
>>> should
>>> be able to remove that line.
>> 
>>> $KCODE = "U" is also the old 1.9 strategy.  I believe the 1.9
>>> equivalent would be:
>>> # coding: UTF-8
>> 
>> Sorry again! I had to remove these to get executor.rb to work in 1.9
> 
> Yeah, and that's vital to it working in 1.8, so that's just not going  
> to work for us.

Hi James-

This works for me in 1.9.0, and I assume it would work in 1.8.x:

if RUBY_VERSION !~ /1.9/
  $KCODE = 'u'
  require 'jcode'
end

(I'll get the "old" ;-) Ruby 1.8.6 working with TextMate soon so I can 
check these myself.)

Thanks! Charles




More information about the textmate-dev mailing list