On Mon, Jan 16, 2006 at 11:58:48PM -0000, Andy Hassall wrote: > > So, what's the options? Here's some:
> (3) Get DBD::Oracle to call the win32 SetEnvironmentVariable directly, at > least during the testsuite, if building on Cygwin, rather than (or in > addition to) writing to $ENV. One module that looked promising was Env::C - > but even though this has "#if defined(WIN32)" tests, that just switches to > using _putenv instead of putenv - but not SetEnvironmentVariable. > > (4) Limit the test suite under cygwin to only run those tests where > NLS_NCHAR is already set to the required value - i.e. never actually call > set_nls_nchar(). > I can have a look at (3) in DBD::Oracle, but it'll probably involve some C, > since the Win32 module (installable from cygwin's installer as > perl-libwin32) doesn't include SetEnvironmentVariable, and Win32::API won't > build. > > Option (4) reduces the nchar test coverage quite a bit, so it's not very > satisfactory, but it would be simplest. I'd be willing to add a cygwin-specific function to DBD::Oracle (Oracle.xs and dbdimp.c) that calls SetEnvironmentVariable(). Patches welcome :) [An estimate of the time required would help since I'm readying an RC5 that I hope to announce on dbi-users soonish.] Tim.
