JRuby

Cannot open nor stat non-ASCII file names

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1RC2
  • Fix Version/s: JRuby 1.1RC3
  • Component/s: Interpreter
  • Labels:
    None
  • Environment:
    Any with non-ASCII file names
  • Patch Submitted:
    Yes
  • Number of attachments :
    1

Description

The present JRuby treats any string as a byte-transparent
iso-8859-1 sequence and passes it reinterpreting into UTF-8
to Swing and other Java APIs. For consistency, the same
reinterpretation is necessary for JRuby to pass strings
to java.io.* APIs in order to implement the File and Dir
classes of Ruby.

For now, you cannot open nor 'stat' any files with non-ASCII
names in UTF-8.

See the post to dev@jruby.codehaus.org:
Subject: [jruby-dev] Cannot open nor stat non-ASCII file names
Date: Mon, 18 Feb 2008 21:42:12 +0900

Activity

Hide
Charles Oliver Nutter added a comment -

It's got a patch...get into 1.1.

Show
Charles Oliver Nutter added a comment - It's got a patch...get into 1.1.
Hide
Thomas E Enebo added a comment -

Must have...taking

Show
Thomas E Enebo added a comment - Must have...taking
Hide
Thomas E Enebo added a comment -

Fixed in commit 6073 on trunk (patch by SUZUKI Hisao)

Show
Thomas E Enebo added a comment - Fixed in commit 6073 on trunk (patch by SUZUKI Hisao)

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: