#111: macruby not working with unicode from ScriptingBridge -------------------------------------+-------------------------------------- Reporter: jordan.breeding@mac.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: wontfix Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => wontfix Comment: After a quick investigation this looks like an expected behavior. String#inspect in 1.9 does show unicode bytes instead of characters, which is why you're getting this output. However, printing the string will show the whole unicode character sequence. {{{ $ macirb
"ooo".transform('latin-hiragana') => "\xE3\x81\x8A\xE3\x81\x8A\xE3\x81\x8A" puts "ooo".transform('latin-hiragana') おおお => nil
}}}
I verified that by selecting some songs in my iTunes playlist and calling #puts on the current track name. {{{ $ macruby -e "framework 'ScriptingBridge'; puts SBApplication.applicationWithBundleIdentifier('com.apple.itunes').currentTrack.name" Protège-moi $ macruby -e "framework 'ScriptingBridge'; puts SBApplication.applicationWithBundleIdentifier('com.apple.itunes').currentTrack.name" そぎい! }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/111#comment:1> MacRuby <http://macruby.org/>