This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |