berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Problem with /./ #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Ruby.exe and RubyCompiler.exe. svn 136

def test_chars
 kc_backup = $KCODE
 begin
  $KCODE = 'EUC'
  s = String.new("\244\242")
  assert_equal "\244\242", s
  s =~ /./
  # Fails with Ruby.exe and RubyCompiler.exe (Gets <"\244">). Ok with MRI
  assert_equal "\244\242", $~[0]
 ensure
  $KCODE = kc_backup
 end    
end

Original issue reported on code.google.com by djl.rif...@googlemail.com on 22 Oct 2007 at 6:54