yaroslav / russian

Russian language support for Ruby and Rails | Поддержка русского языка для Ruby и Rails
MIT License
475 stars 127 forks source link

$KCODE issues warning in Ruby 1.9.x #1

Closed antage closed 15 years ago

antage commented 15 years ago

$KCODE in lib/russian.rb issues warning "variable $KCODE is no longer effective; ignored" in Ruby 1.9.1 and should be wrapped in if/end:

if RUBY_VERSION < "1.9"
  $KCODE = 'u'
end
yaroslav commented 15 years ago

Applied, thanks