Mercurial > gnulib
view doc/c-strcase.texi @ 40140:81f075eaa990
ptsname_r: Work around bug on Android 4.3.
* m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
correct.
* lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
is defined, just fix the return value.
* doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
The behaviour of musl libc is nothing to be "fixed", since it is
compliant with the next POSIX standard.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 26 Jan 2019 15:23:19 +0100 |
parents | b06060465f09 |
children |
line wrap: on
line source
@c Documentation of gnulib module 'c-strcase'. @c Copyright (C) 2008-2019 Free Software Foundation, Inc. @c Permission is granted to copy, distribute and/or modify this document @c under the terms of the GNU Free Documentation License, Version 1.3 or @c any later version published by the Free Software Foundation; with no @c Invariant Sections, no Front-Cover Texts, and no Back-Cover @c Texts. A copy of the license is included in the ``GNU Free @c Documentation License'' file as part of this distribution. The @code{c-strcase} module contains case-insensitive string comparison functions operating on single-byte character strings, like the functions in @code{<strings.h>}, that operate as if the locale encoding was ASCII. (The "C" locale on many systems has the locale encoding "ASCII".) The functions are: @smallexample extern int c_strcasecmp (const char *s1, const char *s2); extern int c_strncasecmp (const char *s1, const char *s2, size_t n); @end smallexample For case conversion here, only ASCII characters are considered to be upper case or lower case. Note: The functions @code{strcasecmp}, @code{strncasecmp} from @code{<strings.h>} support only unibyte locales; for multibyte locales, you need the functions @code{mbscasecmp}, @code{mbsncasecmp}, @code{mbspcasecmp}.