From 2f459c4a92065cda8b75678215cb5df1f8a33695 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Fri, 29 Apr 2011 11:24:25 +0000 Subject: Add BUGS section explaining that these functions do not cover the entire Unicode character set in a UTF-8 locale and can therefore return wrong answers. --- lib/libc/locale/iswalnum.3 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/libc/locale') diff --git a/lib/libc/locale/iswalnum.3 b/lib/libc/locale/iswalnum.3 index 4a0eae2cf85..572cf38b48b 100644 --- a/lib/libc/locale/iswalnum.3 +++ b/lib/libc/locale/iswalnum.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: iswalnum.3,v 1.3 2010/09/10 18:38:19 jmc Exp $ +.\" $OpenBSD: iswalnum.3,v 1.4 2011/04/29 11:24:24 stsp Exp $ .\" $NetBSD: iswalnum.3,v 1.8 2003/09/08 17:54:31 wiz Exp $ .\" .\" Copyright (c) 1991 The Regents of the University of California. @@ -34,7 +34,7 @@ .\" .\" @(#)isalnum.3 5.2 (Berkeley) 6/29/91 .\" -.Dd $Mdocdate: September 10 2010 $ +.Dd $Mdocdate: April 29 2011 $ .Dt ISWALNUM 3 .Os .Sh NAME @@ -115,3 +115,6 @@ The argument to these functions must be or a valid .Fa wchar_t value with the current locale; otherwise, the result is undefined. +.Sh BUGS +In a UTF-8 locale these functions return wrong answers for some characters +because they do not cover the entire Unicode character set. -- cgit v1.2.3