hi guys,

I encountered an issue with File#size returning 20047 on windows by spreadsheet 
gem, and I can reproduce the same error in jirb as below: (latest jruby 1.7.3, 
windows 7, jdk1.6.0_26)
----------------------------------
C:\Users\me>jirb
irb(main):001:0> f=File.new "foo.txt"
=> #<File:foo.txt>
irb(main):002:0> f.size
SystemCallError: Unknown error - Unknown Error (20047) - -1
        from org/jruby/RubyFile.java:1082:in `size'
        from (irb):2:in `evaluate'
        from org/jruby/RubyKernel.java:1066:in `eval'
        from org/jruby/RubyKernel.java:1409:in `loop'
        from org/jruby/RubyKernel.java:1174:in `catch'
        from org/jruby/RubyKernel.java:1174:in `catch'
        from C:\jruby\jruby-1.7.3\bin\jirb:13:in `(root)'
---------------------------------- 

I found two bugs in jira about this issue:
The first one is : 
[windows] File.size is completely broken on Windows
with the link http://jira.codehaus.org/browse/JRUBY-4820
the Status is "Resolved", the Resolution is "Fixed", but Fix Version/s is 
"None".

The second one is:
Changing jnr-posix to use errno() value unconditionally has created lots of 
failures in windows
with the link http://jira.codehaus.org/browse/JRUBY-6136
the status is "Open", Resolution is "Unresolved".

So, do we still have this bug in latest v1.7.3?
I want to have a confirmation, then we can decide what to do next?

Or any workaround for this issue?

Thanks.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to