[MacRuby] #783: Patch for builder.rb error: invalid byte sequence in US-ASCII

MacRuby ruby-noreply at macosforge.org
Sat Dec 4 09:30:12 PST 2010


#783: Patch for builder.rb error: invalid byte sequence in US-ASCII
-------------------------------+--------------------------------------------
 Reporter:  slewsys@…          |        Owner:  lsansonetti@…        
     Type:  defect             |       Status:  closed               
 Priority:  major              |    Milestone:  MacRuby 0.8          
Component:  MacRuby            |   Resolution:  fixed                
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by eloy.de.enige@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.8


Comment:

 @Laurent: Nope, that won't work. The magic encoding is only about the
 bytes in the source file, not about data read from IO. After discussing a
 few permutations, we decided that setting the proper external encoding is
 the best thing to do, this will work on all rubies and will make sure that
 any future File.read statements will work.

 I've tested that I can build on 1.8 and 1.9 with r4976.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/783#comment:4>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list