Skip to content
Browse files

Don't set KCODE on 1.9

  • Loading branch information...
1 parent 2df88dc commit e3571860737f9bf48579e93a18b2c6de1b8720d9 @cjheath cjheath committed Dec 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helper.rb
View
2 spec/spec_helper.rb
@@ -62,7 +62,7 @@ def parse(input, options = {})
def parse_multibyte(input, options = {})
require 'active_support/all'
- if 'NONE' == $KCODE then $KCODE = 'UTF8' end
+ if RUBY_VERSION !~ /^1.9/ && 'NONE' == $KCODE then $KCODE = 'UTF8' end
# rspec 1.3 used to do something similar (set it to 'u') that we need
# for activerecord multibyte wrapper to kick in (1.8 only? @todo)

0 comments on commit e357186

Please sign in to comment.
Something went wrong with that request. Please try again.