Re: strcasecmp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2 September 2014 at 15:16, Jonny Grant <jg@xxxxxxxx> wrote:
> Hello
>
> http://man7.org/linux/man-pages/man3/strcasecmp.3.html
>
> Is it worth clarifying that this is a byte-wise comparison, or does it also
> check locale?

It's byte-wise, AFAIK. POSIX says:

        When the LC_CTYPE category of the locale being used is  from  the
        POSIX  locale, these functions shall behave as if the strings had
        been converted to lowercase and then a byte comparison performed.
         Otherwise, the results are unspecified.

I added some text to the man page to clarify.

Thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux