On Tue, Dec 09, 2014 at 05:51:28PM +0100, Ingo Schwarze wrote: > So, like this? > Ingo >
I would suggest pointing at iswalnum() and wctype.h instead of iswctype(), if only for consistency. The iswctype() interface is somewhat obscure. Its real world use case isn't very obvious to me. Use of the wctype.h functions is probably more common. > Index: setlocale.3 > =================================================================== > RCS file: /cvs/src/lib/libc/locale/setlocale.3,v > retrieving revision 1.16 > diff -u -r1.16 setlocale.3 > --- setlocale.3 9 Dec 2014 15:32:23 -0000 1.16 > +++ setlocale.3 9 Dec 2014 16:46:51 -0000 > @@ -74,9 +74,12 @@ > and > .Fn strxfrm . > .It Dv LC_CTYPE > -Set a locale for the > -.Xr wctype 3 > -functions. > +Set a locale for > +.Xr isalnum 3 > +and the related functions defined in > +.In ctype.h , > +as well as for > +.Xr iswctype 3 . > This controls recognition of upper and lower case, > alphabetic or non-alphabetic characters, and so on. > The real work is done by the