problematic document for isascii(3)
Eric Blake
eblake@redhat.com
Fri May 24 12:14:00 GMT 2013
On 05/24/2013 02:23 AM, ntysdd wrote:
> The POSIX wording seems strange to me.
> It says:
> `The isdigit() and isdigit_l() functions shall test whether c is a
> character of class digit in the current locale, or in the locale
> represented by locale, respectively.'
>
> But the ansi draft says:
> `The only functions in $4.3 whose behavior is not affected by the
> current locale are isdigit and isxdigit .'
At the moment, both wordings are technically true, because POSIX also
requires that regardless of locale, exactly 10 characters qualify as
class digit (no matter how many other characters in the locale have
digit-like properties).
There's a pending bug asking the C committee whether they have a bug in
their standard regarding which characters belong to which character
classes; the resolution of that bug may impact future POSIX wording:
http://austingroupbugs.net/view.php?id=663#c1504
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1694.pdf
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20130524/c0b59b47/attachment.sig>
More information about the Newlib
mailing list