RE: Confusion with stricmp on Win32

2005-01-26 Thread Jan Dubois
On Wed, 26 Jan 2005, Steve Hay wrote: > Ah. But if I call setlocale(LC_ALL, "C") first, then I do get -1. > > So this explains the difference: the Perl XS code was running in > "English_United Kingdom.1252" locale by default, while the C program > was running in "C" locale by default. (This can be

Re: Confusion with stricmp on Win32

2005-01-26 Thread Steve Hay
Reinhard Pagitsch wrote: >Hello Steve, >Steve Hay wrote: > > > >>Bizarre. What locale were you using before when you got -1? >> >> >> >> >> >I did not used setloale in the XS code or in the .pm file or test.pl. > > I'm not sure why you get -1 by default and I get -25 by default. Maybe

Re: Confusion with stricmp on Win32

2005-01-26 Thread Reinhard Pagitsch
Hello Steve, Steve Hay wrote: Bizarre. What locale were you using before when you got -1? I did not used setloale in the XS code or in the .pm file or test.pl. If I call setlocale(LC_ALL, "German") (which returns "German_Germany.1252") then I still get -25. I am too. Try to set ret = setloc

Re: Confusion with stricmp on Win32

2005-01-26 Thread Steve Hay
Steve Hay wrote: >Reinhard Pagitsch wrote: > > > >>Hello Steve, >> >>Steve Hay wrote: >> >> >> >> >> >>>Reinhard Pagitsch wrote: >>> >>> >>> >>> >>> Sisyphus wrote: >Reinhard Pagitsch wrote: > > > > >>

Re: Confusion with stricmp on Win32

2005-01-26 Thread Steve Hay
Reinhard Pagitsch wrote: >Hello Steve, > >Steve Hay wrote: > > > >>Reinhard Pagitsch wrote: >> >> >> >>>Sisyphus wrote: >>> >>> >>> >>> >>> Reinhard Pagitsch wrote: >Hello Steve, > >Steve Hay wrote: > > > >

Re: Confusion with stricmp on Win32

2005-01-26 Thread Reinhard Pagitsch
Hello Steve, Steve Hay wrote: Reinhard Pagitsch wrote: Sisyphus wrote: Reinhard Pagitsch wrote: 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'm also on Windows 2000 but

Re: Confusion with stricmp on Win32

2005-01-26 Thread muppet
On Jan 26, 2005, at 5:08 AM, Nicholas Clark wrote: On Wed, Jan 26, 2005 at 09:19:26AM +0100, Reinhard Pagitsch wrote: 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. What's it documented to be?

Re: Confusion with stricmp on Win32

2005-01-26 Thread Steve Hay
Reinhard Pagitsch wrote: >Sisyphus wrote: > > > >>Reinhard Pagitsch wrote: >> >> >> >>>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 -

Re: Confusion with stricmp on Win32

2005-01-26 Thread Reinhard Pagitsch
Sisyphus wrote: Reinhard Pagitsch wrote: 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'm also on Windows 2000 but I'm getting the same weird behaviour as Steve - wrt to each of MinGW (gc

Re: Confusion with stricmp on Win32

2005-01-26 Thread Steve Hay
Nicholas Clark wrote: >On Wed, Jan 26, 2005 at 09:19:26AM +0100, Reinhard Pagitsch wrote: > > >>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 expecte

Re: Confusion with stricmp on Win32

2005-01-26 Thread Nicholas Clark
On Wed, Jan 26, 2005 at 09:19:26AM +0100, Reinhard Pagitsch wrote: > 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. What's it documented to be? stricmp() doesn't see

Re: Confusion with stricmp on Win32

2005-01-26 Thread Sisyphus
Reinhard Pagitsch wrote: 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'm also on Windows 2000 but I'm getting the same weird behaviour as Steve - wrt to each of MinGW (gcc) *and* MSVC++

Re: Confusion with stricmp on Win32

2005-01-26 Thread Reinhard Pagitsch
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. mit freundlichen Grüßen, with my best regards, Reinhard