in reply to Re^14: Testing Time::Piece on Windows/VC
in thread Testing Time::Piece on Windows/VC
localtime and gmtime are still being imported from msvcr70.dll. Is that what's stuffing things up ?
No. That's what cured the problem with tzoffset(). It means that all the CRT calls used by Time::Piece are now imported from the same version of the CRT, and therefore operate upon the CRT copy of the environment. Previously, those two were being imported from msvcrt.dll, and hence referenced its copy of the environment, while the tzset(), getenv() & putenv() were coming from msvcr70.dll and operating upon its copy.
The failure you're seeing now, is with strftime() & "%Z", which fails to return the timezone name. Which is weird because dumpbin shows strftime() being imported from the right place.
If the module was picking up anything from the wrong runtime, I'd have expected to see it also importing something from mscvrt.dll, but that's not the case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^16: Testing Time::Piece on Windows/VC
by syphilis (Archbishop) on Feb 03, 2010 at 03:46 UTC | |
by BrowserUk (Patriarch) on Feb 03, 2010 at 07:49 UTC |