From: Victor Shepelev Date: 2006-05-30T05:56:28+09:00 Subject: Re: Iconv buffer overflow? From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org] Sent: Monday, May 29, 2006 7:07 PM > Hi, > > In message "Re: Iconv buffer overflow?" > on Mon, 29 May 2006 23:32:48 +0900, "Victor Shepelev" > writes: > > |Hi all. > | > |require 'iconv' > |max_length = 513 > |str = ' ' * max_length > |Iconv.new('utf-8', 'windows-1252').iconv(str) > | > |Error:in `Iconv#iconv': " " (Iconv::BrokenLibrary) > | > |If max_length <= 512, all is OK. > | > |1. Is it normal? > |2. Is it documented somewhere? > > I suspect that it's caused by underlying iconv library on your > platform. Could you show us your platform information? > > It's OK on my Linux box. ruby -v ruby 1.9.0 (2006-05-01) [i386-mswin32] V.