From: Ly Vu Date: 2009-08-06T12:16:02+09:00 Subject: Re: chars method Robert Dober wrote: > On Wed, Dec 10, 2008 at 9:54 AM, George George > wrote: > Not only 1.9, also 1.8.7 > 519/20 > ruby -v -e 'p " ".chars' > ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] > # > R. > > Umberto Eco Thanks Robert, From this, I found that my problem can be solved by upgrade my ruby from version 1.8.6 to ruby 1.8.7 or higher. Let's see the ChangeLog of Ruby1.8.7 (http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_160/ChangeLog) Mon Apr 14 13:58:32 2008 Akinori MUSHA * string.c (rb_str_each_char): New methods: String#chars and #each_char; backported from 1.9. And the ChangeLog of Ruby1.8.6 Mon Mar 27 22:19:09 2006 NARUSE, Yui * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c, config.h}: imported nkf 2.0.6. * Add --ic / --oc option and mapping tables. * Add fallback option. * Add --no-best-fit-chars option. ----------- Ly -- Posted via http://www.ruby-forum.com/.