public
Last active

exceedingly simple code which is failing on windows on jruby

  • Download Gist
write.rb
Ruby
1 2 3 4 5
# encoding: utf-8
 
require 'tmpdir'
 
File.open(File.join(Dir.tmpdir,"jtest.txt"),"w:utf-8") {|f| f.write "テスト123漢字"}

JRuby 1.7.1, Windows 2008 R2, JDK 1.7 U11 in 1.9 mode
JRuby 1.7.2, Windows XP SP3, bundled JRE in 1.9 mode

1.8 mode works correctly.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.