Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Windows
-
Labels:None
-
Environment:jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-02-27 fffffff) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_02) [Windows 7-amd64-java] 
-
Number of attachments :
Description
Hi.
When I tried latest JRuby (github master / 1.9 mode) on windows box recently, the following warning about character encoding has occurred.
>bin\jruby --version
jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-02-27 fffffff) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_02) [Windows 7-amd64-java]
>bin\jruby -e "puts :foo"
(snip)/git-repos/jruby/lib/ruby/shared/Win32API.rb:7 warning: warning: variable $KCODE is no longer effective
foo
$KCODE is no longer effective, Encoding.default_internal should be used instead of the $KCODE.
Thanks
So, this warning also appears in MRI 1.9.3, but I feel like I'm seeing it more than I should. I'm guessing it's a simple matter of Win32API using $KCODE when it should not. Will look into that.