From: Yui NARUSE Date: 2011-06-26T13:45:39+09:00 Subject: [ruby-core:37363] [Ruby 1.9 - Bug #3448][Rejected] broken iconv library Issue #3448 has been updated by Yui NARUSE. Status changed from Open to Rejected //ignore is GNU libiconv's feature ---------------------------------------- Bug #3448: broken iconv library http://redmine.ruby-lang.org/issues/3448 Author: Marc-Andre Lafortune Status: Rejected Priority: Low Assignee: Category: ext Target version: ruby -v: all =begin Texts longer than ~8160 characters can create problems with iconv on some distributions: require 'iconv' Iconv.conv("iso-8859-1//ignore", "utf-8", "\305\253" + "a"*8159).size #=> 8159 Iconv.conv("iso-8859-1//ignore", "utf-8", "\305\253" + "a"*8160).size # => Iconv::IllegalSequence: "a" The code above is from Debian 4 and 5 (on Heroku...), but it works as expected on OS X. As such, it affects Ruby 1.8 and 1.9 A google search reassured me I was not crazy, e.g. my_iconv_open in: http://www.opensource.apple.com/source/vim/vim-6/vim/src/mbyte.c I realize this is somewhat a third party issue, but I'm logging this nevertheless, as a brave soul might bypass the bug in the Ruby library and/or report this to the proper authorities. -- Marc-Andr�� =end -- http://redmine.ruby-lang.org