Setlocale() tells me my locale is "C". (I am running POSIX(ON) FWIW.) Is
this expected behavior for Locale C?

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Charles Mills
Sent: Thursday, June 1, 2017 12:44 PM
To: [email protected]
Subject: Re: strcasecmp() comparing punctuation in ASCII?

It's clearly doing everything in ASCII:

strcasecmp("Z", "0") 122   

It's interesting. I use the same compare function for both a sort and for a
binary search, so it all works correctly -- it's just not working the way I
think it is.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to