[MacRuby] #1200: stringWithFormat seg faults when %@ is used

MacRuby ruby-noreply at macosforge.org
Wed Mar 16 14:06:13 PDT 2011


#1200: stringWithFormat seg faults when %@ is used
-------------------------------------+--------------------------------------
 Reporter:  aliabbasrizvi@…          |        Owner:  lsansonetti@…        
     Type:  defect                   |       Status:  closed               
 Priority:  minor                    |    Milestone:                       
Component:  MacRuby                  |   Resolution:  wontfix              
 Keywords:                           |  
-------------------------------------+--------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => wontfix
  * milestone:  MacRuby 0.10 =>


Comment:

 You need to load the Foundation framework before.

 {{{
 $ ./miniruby -e "p NSString.stringWithFormat('foo %@', 'bar')"
 Segmentation fault: 11
 $ ./miniruby -e "framework 'Foundation'; p NSString.stringWithFormat('foo
 %@', 'bar')"
 "foo bar"
 }}}

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



More information about the macruby-tickets mailing list