__FILE__ corrupts cyrillic characters
-------------------------------------

                 Key: JRUBY-5615
                 URL: http://jira.codehaus.org/browse/JRUBY-5615
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
         Environment: Mac OS X 10.6.6, running JRuby 1.6 within Eclipse 3.6.1
            Reporter: Kevin Lindsey
            Assignee: Thomas E Enebo
            Priority: Minor


We are executing scripts from Java with something very much like the following
{code:java}
ScriptingContainer container = new 
ScriptingContainer(LocalContextScope.SINGLETON, 
LocalVariableBehavior.TRANSIENT);
EmbedEvalUnit unit = container.parse(PathType.ABSOLUTE, this._filename);
result = unit.run();
{code}
If I execute a script in a path like 
"/Users/klindsey/Documents/Александр/script.rb",
 a call to 'puts __FILE__' in that script results in the following output: 
"/Users/klindsey/Documents/?????????/script.rb". However, putting $0 shows the 
correct value. Is there something that needs to be set when executing scripts 
to preserve the encoding in __FILE__?

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