File path (with ++++) get corrupted through require
---------------------------------------------------

                 Key: JRUBY-3872
                 URL: http://jira.codehaus.org/browse/JRUBY-3872
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.8.7
    Affects Versions: JRuby 1.3
         Environment: OSX
            Reporter: Micah Martin


A file exists in a path containing "++++".  When required, the file's path is 
corrupted.  All the '+' chars have been turned into spaces.  See example below.

Bludgeon:~ micahmartin$ ruby -r'tmpdir' -e "puts Dir.tmpdir"
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-
Bludgeon:~ micahmartin$ echo "puts File.expand_path(__FILE__)" > 
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-/required.rb
Bludgeon:~ micahmartin$ echo "require 
'/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-/required.rb'" > 
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-/test.rb
Bludgeon:~ micahmartin$ ruby 
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-/test.rb
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-/required.rb
Bludgeon:~ micahmartin$ jruby 
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ++++TI/-Tmp-/test.rb
/var/folders/Ua/UaSsKfypEtmaJtPWMhbUQ    TI/-Tmp-/required.rb
Bludgeon:~ micahmartin$ jruby --version
jruby 1.3.0 (ruby 1.8.6p287) (2009-06-03 5dc2e22) (Java HotSpot(TM) Client VM 
1.5.0_19) [i386-java]


-- 
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


Reply via email to