X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fisascii.texi;h=d4ab2c22ffedd2888a28d9ce7f8879137ecd7f5c;hb=78d218ff8a7c36feaa55c58abdcec8270654e6f1;hp=19a70370ba6d2eb667f90e07939041527c2cef9f;hpb=2b6c08c775ae4e80b52aa41058ea5939f778b44b;p=gnulib.git diff --git a/doc/posix-functions/isascii.texi b/doc/posix-functions/isascii.texi index 19a70370b..d4ab2c22f 100644 --- a/doc/posix-functions/isascii.texi +++ b/doc/posix-functions/isascii.texi @@ -2,7 +2,7 @@ @section @code{isascii} @findex isascii -POSIX specification: @url{http://www.opengroup.org/susv3xsh/isascii.html} +POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/isascii.html} Gnulib module: --- @@ -13,3 +13,18 @@ Portability problems fixed by Gnulib: Portability problems not fixed by Gnulib: @itemize @end itemize + +Note: This function's behaviour depends on the locale, but requires special +handling for the multibyte characters that occur in strings in locales with +@code{MB_CUR_MAX > 1} (this includes all the common UTF-8 locales). +There are two alternative APIs: + +@table @code +@item c_isascii +This function operates in a locale independent way and returns true only for +ASCII characters. It is provided by the Gnulib module @samp{c-ctype}. + +@item mb_isascii +This function operates in a locale dependent way, on multibyte characters. +It is provided by the Gnulib module @samp{mbchar}. +@end table