[MacRuby-devel] [macruby] #66: Death by Iconv
macruby
ruby-noreply at macosforge.org
Mon Jun 2 22:46:40 PDT 2008
#66: Death by Iconv
-----------------------------------------+----------------------------------
Reporter: rowland at rowlandresearch.com | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 1.0
Component: MacRuby | Resolution:
Keywords: |
-----------------------------------------+----------------------------------
Comment (by lsansonetti at apple.com):
Currently this isn't very easy, but it should be better once RUBY_ENGINE
is introduced in all implementations. You can still try to compare one of
the values in rbconfig.rb, in the meantime. Example:
{{{
$ macruby -r rbconfig -e "p RbConfig::CONFIG['RUBY_INSTALL_NAME'] ==
'macruby'"
true
}}}
Curiously, why do you need Iconv? If it's to create or translate strings
using a given encoding, you may want to use the String API instead, even
in pure 1.9. Then, your code would only use Iconv for 1.8.
--
Ticket URL: <http://ruby.macosforge.org/trac/ticket/66#comment:3>
macruby <http://ruby.macosforge.org/>
More information about the MacRuby-devel
mailing list