Re: [PATCH 1/1] strcmp.3: clarify that strcmp() is not locale aware

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

 



Hello Heinrich,

On 07/19/2018 07:08 PM, Heinrich Schuchardt wrote:
Indicate that strcmp() does not take the locale into account.
Provide a link to strcoll().

Thanks! Patch applied.

Cheers,

Michael

Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>
---
  man3/strcmp.3 | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/man3/strcmp.3 b/man3/strcmp.3
index 33c6c7430..9928d1367 100644
--- a/man3/strcmp.3
+++ b/man3/strcmp.3
@@ -47,6 +47,8 @@ function compares the two strings
  .I s1
  and
  .IR s2 .
+The locale is not taken into account (for a locale aware comparison see
+.BR strcoll (3)).
  It returns an integer less than, equal to, or greater
  than zero if
  .I s1

--
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