> > > > How can I let Ruby ignore RUBYOPT?
> > > >
> > > > Both -T1 and unsetting the environment variable aren't
> > > > possible in my situation. I don't want the rest of the
> > > > script to run in safe mode 1 and I don't have control
> > > > of the environment...
> > >
> > > I haven't followed this thread, but since the internal
> > > ENV only affects the current process and its children,
> > > can you wrap your program in a script that unsets RUBYOPT
> > > and then just fork/popen the real program?
> >
> > No, I can't. I start ruby.exe from a little FreePascal
> > program, which does have getenv(), but no such thing as
> > setenv().
>
> Have you checked for putenv()?

Brilliant idea! And yes, I've checked it. And no, it doesn't
exist...

gegroet,
Erik V.