#769: String::ord with packed array in MacRuby ---------------------------------+------------------------------------------ Reporter: babs.devs@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: binary, pack, ord, ordinal, String, String::ord ---------------------------------+------------------------------------------ Comment(by babs.devs@…): Replying to [comment:2 lsansonetti@…]:
I believe you're hitting a MacRuby bug here. Our String#ord method does not behave like Ruby 1.9.
Oh, ok. I was sure it was just a facepalm moment on my part, thanks for the heads up. I ended up hacking around this by doing something like this: {{{ foo[0].force_encoding("ISO-8859-1").encode("UTF-8").ord }}} It's probably wrong, but it seams to work for me. -- Ticket URL: <http://www.macruby.org/trac/ticket/769#comment:3> MacRuby <http://macruby.org/>