From: Roger Pack Date: 2011-05-18T04:06:14+09:00 Subject: [ruby-core:36283] Re: Fwd: File.write take 4 > But it could probably be better by Run Paint Run Run's > (or RubySpec folks') exhaustive review. Ok forwarding this message on to him as well, if he has any feedback please get back in touch quickly, for the sake of feature freeze. That being said, the original specs were mostly from him, so I think we're reasonably good there. > �$ ./ruby -e 'p File.write("t", "foo", encoding: "UTF-8")' > �:82:in `initialize': No such file or directory - t > (Errno::ENOENT) Latest patch uploaded should hopefully accomodate this, and adds a test for it. > It would be better to rewrite the patch in C, I think. Yeah I agree--I even tried to originally (by trying to refactor the original C based patch) but I could not seem to understand io.c well enough to get it to work. Maybe you could help me, or somebody out there? My thought would be to use just the pure ruby version until somebody can commit a pure C version of it (like require_relative did for awhile). Thoughts? Thanks! -roger-