Hello Steve,
Steve Hay wrote:
It seems to me it had something todo with the locale. If I use char * ret = setlocale( LC_ALL, "English" );Reinhard Pagitsch wrote:
Interesting. I just tried using the C++ Toolkit 2003 and I now get +1 / -1 from the XS too. (It is VC++ 6.0 that gives me >1 / <1.)Sisyphus wrote:
Reinhard Pagitsch wrote:
I'm also on Windows 2000 but I'm getting the same weird behaviour as Steve - wrt to each of MinGW (gcc) *and* MSVC++ 6.0 *and* MSVC++ 7.0.Hello Steve,
Steve Hay wrote:
why is it that the following XS code outputs -25:[code sniped]
On my system (Windows 2000) the output is -1, as expected.
(I have perls 5.8 built with each of those 3 compilers.)
I have no idea why this is happening.
Cheers,
Rob
I use the "Microsoft Visual C++ Toolkit 2003" and the "Microsoft Platform SDK February 2003" and
perl v5.6.1 from Activestate
Perl 5.6.1 and 5.8.6 both behave the same, though, and ActiveState builds are no different either.
Maybe there is an implementation of stricmp in Perl which overwrites the implementation from the other?I couldn't see anything like that in the sources. The only mention of stricmp() were a few calls to it in win32/win32.c.
- Steve
befor than I get for stricmp("a", "z") -25.
-- mit freundlichen Grüßen, with my best regards, Reinhard