On 14.02.2007 01:13, Ian Macdonald wrote: > On Wed 14 Feb 2007 at 09:08:17 +0900, David Balmain wrote: > >> On 2/14/07, Ian Macdonald <ian / caliban.org> wrote: >>> I should have asked by now, but can anyone else reproduce this with >>> Ruby 1.8.5? >> I can reproduce this 1.8.4 > > Just to be clear, you are confirming that the following code: > > foo = "prñÇñÓñÆs" > p foo =~ /[^[:alnum:]]/ > > prints nil in irb and 2 in a stand-alone script when in both cases your > locale is preset to nl_NL? Another idea: maybe the readline lib interferes with encodings somehow in IRB? What happens if you invoke your script from within IRB via "load"? Kind regards robert