Encoding problems with File.expand_path after JRUBY-3576 fix for Macroman issue
-------------------------------------------------------------------------------
Key: JRUBY-3806
URL: http://jira.codehaus.org/browse/JRUBY-3806
Project: JRuby
Issue Type: Bug
Environment: Mac OS
Reporter: Daniel Hahn
Assignee: Thomas E Enebo
After fixing the MacRoman issue on the Mac installation, File.expand_path
behaves badly if presented with special chars:
Testing with this script:
{noformat}
puts File.expand_path('ΓΌ')
{noformat}
and the results for normal ruby
{noformat}
$ ruby test.rb | xxd
0000000: 2f44 6576 656c 6f70 6572 2f54 616c 6961 /Developer/Talia
0000010: 2f64 6973 636f 7665 7279 5f61 7070 2fc3 /discovery_app/.
0000020: bc0a
{noformat}
old jruby settings are the same:
{noformat}
$ jruby test.rb | xxd
0000000: 2f44 6576 656c 6f70 6572 2f54 616c 6961 /Developer/Talia
0000010: 2f64 6973 636f 7665 7279 5f61 7070 2fc3 /discovery_app/.
0000020: bc0a ..
{noformat}
but after the patch, it breaks:
{noformat}
$ jruby test.rb | xxd
0000000: 2f44 6576 656c 6f70 6572 2f54 616c 6961 /Developer/Talia
0000010: 2f64 6973 636f 7665 7279 5f61 7070 2fc3 /discovery_app/.
0000020: 83c2 bc0a
{noformat}
Reading and writing those chars from/to files works fine, just this methods
seems to have problems (haven't tested other path-handling methods yet).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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