X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fisascii.texi;h=d4ab2c22ffedd2888a28d9ce7f8879137ecd7f5c;hb=78d218ff8a7c36feaa55c58abdcec8270654e6f1;hp=4dd419a913a3d07fc23f405a68cec741079736af;hpb=09ef7461110822a3970aa8eebcfaa740996a82f2;p=gnulib.git diff --git a/doc/posix-functions/isascii.texi b/doc/posix-functions/isascii.texi index 4dd419a91..d4ab2c22f 100644 --- a/doc/posix-functions/isascii.texi +++ b/doc/posix-functions/isascii.texi @@ -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