From: Brian Candler Date: 2010-04-19T02:06:47+09:00 Subject: Re: iconv transfer code Benoit Daloze wrote: > Please don't be so pessimist without real reason :) > (that said, show some code that has different result in the conditions > you > said). Sure. Here's a simple one: File.open("myfile.txt") do |f| line = f.gets line =~ /./ end You can run this script on two machines, with the same version of OS and ruby and the same myfile.txt but with different environment variable settings, and get it to crash on one but not the other. (One way: if the default external encoding on one machine is US-ASCII and myfile.txt contains any byte with the top bit set) > Maybe what you're describing is caused by different revisions, but that > happened also in 1.8, no? This is intentional behaviour in ruby 1.9. -- Posted via http://www.ruby-forum.com/.