[MacRuby-devel] [MacRuby] #111: macruby not working with unicode from ScriptingBridge
MacRuby
ruby-noreply at macosforge.org
Thu Aug 28 21:44:07 PDT 2008
#111: macruby not working with unicode from ScriptingBridge
-------------------------------------+--------------------------------------
Reporter: jordan.breeding at mac.com | Owner: lsansonetti at apple.com
Type: defect | Status: closed
Priority: blocker | Milestone:
Component: MacRuby | Resolution: wontfix
Keywords: |
-------------------------------------+--------------------------------------
Changes (by lsansonetti at 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/>
More information about the MacRuby-devel
mailing list