Permalink
Browse files

Oops, check Ruby version before triggering KCODE warning.

  • Loading branch information...
henrik committed Dec 13, 2012
1 parent 94fc463 commit 065204278a7c5bf4b561dc619c431ae8f80da885
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ya2yaml.rb
View
@@ -25,7 +25,7 @@ def initialize(options = {})
end
def _ya2yaml(obj)
- throw 'set $KCODE to "UTF8".' if $KCODE != 'UTF8' && RUBY_VERSION < '1.9'
+ throw 'set $KCODE to "UTF8".' if RUBY_VERSION < '1.9' && $KCODE != 'UTF8'
'--- ' + emit(obj,1) + "\n"
end

0 comments on commit 0652042

Please sign in to comment.