![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.6.7 |
Assignee:
|
Thomas E Enebo
|
Created:
|
21/May/12 10:30 PM
|
Description:
|
Hi,
I'm seeing different default external encodings between JRuby and MRI,
which is causing me a bit of grief trying to convert some win32 stuff
to FFI.
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
C:\Users\djberge\Repositories\win32-dir>irb
irb(main):001:0> Encoding.default_external
=> #<Encoding:IBM437>
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java
HotSpot(TM) Client VM 1.6.0_23) [Windows 7-x86-java]
C:\Users\djberge\Repositories\win32-dir>jirb
irb(main):001:0> Encoding.default_external
=> #<Encoding:Windows-1252>
It seems MRI is using the console encoding by default for strings,
while JRuby is using the system encoding. Which is correct?
Park Heesob was kind enough to link me to a couple of related articles:
http://en.wikipedia.org/wiki/Code_page
http://blogs.msdn.com/b/michkap/archive/2005/02/08/369197.aspx
Regards,
Dan
|
Environment:
|
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) Client VM 1.6.0_23) [Windows 7-x86-java]
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Daniel Berger
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email