From: Brian Candler Date: 2010-04-19T02:14:40+09:00 Subject: Re: iconv transfer code James Edward Gray II wrote: > On Apr 18, 2010, at 4:22 AM, Brian Candler wrote: > >> One of the joys of ruby 1.9 is that the same program run on two >> different machines can behave differently. That's even if the two >> machines have identical versions of ruby and OS *and* you are feeding in >> the same input data. > > I'm pretty sure that's true with Ruby 1.8 as well. For example, don't > the encodings available to iconv vary depending on the platform? Perhaps, but I was talking about an identical platform, O/S, and installation of ruby - but different configured locale (such as LANG, LC_CTYPE or LC_ALL environment variables) Unless you write your ruby script defensively, it will behave differently dependent on those environment settings when everything else is identical. -- Posted via http://www.ruby-forum.com/.