Skip to content

Instantly share code, notes, and snippets.

@rurounijones
Last active December 11, 2015 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurounijones/4545595 to your computer and use it in GitHub Desktop.
Save rurounijones/4545595 to your computer and use it in GitHub Desktop.
exceedingly simple code which is failing on windows on jruby
# encoding: utf-8
require 'tmpdir'
File.open(File.join(Dir.tmpdir,"jtest.txt"),"w:utf-8") {|f| f.write "テスト123漢字"}
@rurounijones
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment