X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fisascii.texi;h=72312eac52cfe537509670fedd5317135411e6fa;hb=eadf1d03c19abe009c81484b3ebaa443b884a95d;hp=4dd419a913a3d07fc23f405a68cec741079736af;hpb=09ef7461110822a3970aa8eebcfaa740996a82f2;p=gnulib.git diff --git a/doc/posix-functions/isascii.texi b/doc/posix-functions/isascii.texi index 4dd419a91..72312eac5 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/onlinepubs/9699919799/functions/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