#738: A character string cannot be taken out of the variable made by Pointer.new('c'). ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: invalid Keywords: | ----------------------------------+----------------------------------------- Comment(by mred@…): Replying to [comment:2 watson1978@…]: You could also simplify and speed up your code a bit by using {{{ puts NSString.stringWithUTF8String(buffer) }}} instead of {{{ ary = [] (ret - 1).times do |i| ary << buffer[i] end puts ary.pack('c*') }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/738#comment:3> MacRuby <http://macruby.org/>