File/IO broken with special characters in filenames
---------------------------------------------------

                 Key: JRUBY-3050
                 URL: http://jira.codehaus.org/browse/JRUBY-3050
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.4
         Environment: Ubuntu 8.04 / JDK1.6_u6
            Reporter: Christian Seiler
         Attachments: file_utf8.patch

RubyFile and RubyFileTest do not always properly generate Unicode string 
representations of filenames. Operations like File.exist?, File.file? or 
File.unlink fail when containing some "weird" characters.

For instance this breaks attachment_fu: Users cannot upload files with those 
characters in the filename (like German "umlaute": öäü). For the record: 
attachment_fu needs File.file? and File.unlink. The attached patch fixes those 
two methods and makes attachment_fu happy, but there are a lot more remaining 
cases like this in RubyFile. I didn't change these in the patch beause of 
potantial performance hits cause by the Unicode handling??



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