#66: Death by Iconv -----------------------------------------+---------------------------------- Reporter: rowland@rowlandresearch.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Resolution: Keywords: | -----------------------------------------+---------------------------------- Comment (by lsansonetti@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/>