On Tue, Jun 30, 2009 at 8:03 PM, Eric Hodel<[email protected]> wrote: > On Jun 29, 2009, at 20:04, Luis Lavena wrote: >> >> On Mon, Jun 29, 2009 at 8:58 PM, Eric Hodel<[email protected]> wrote: >>> >>> [...] >>> >>> I didn't upload a new gem after the UTF-8 change, I only merged to the >>> 1_3 >>> branch. >>> >>> I'm not able to reproduce your issue, but I have a separate and possibly >>> related one: >> >> I was able to reduce the issue and put it in the minimal sample: >> >> http://pastie.org/528957 >> >> Trying to do File.read on ChangeLog is failing, however on 1.8.6 the >> exact same command works flawlessly. > > It seems to only be on display: > > irb(main):002:0> b = File.read('ChangeLog') > Errno::ENOMEM: Not enough space - <STDOUT> > from > C:/Users/Luis/Tools/Ruby/ruby-1.9.1-p129-i386-mingw32/lib/ruby/1.9.1/irb.rb:302:in > `write' > > what about: b = File.read('ChangeLog'); nil > > I don't see any non-UTF-8 characters in the ChangeLog: > > $ iconv -t utf-8 < ChangeLog > ChangeLog2 > $ diff ChangeLog ChangeLog2 > $ > > This seems to be a Windows-only issue though. Does adding a BOM to > ChangeLog help?
No, but the new File.read_utf that newest Hoe has does. The only thing is that lib/hoe.rb:360 remains using File.read, manually changed to read_utf and worked. At last: http://pastie.org/531530 -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
