Actions
Bug #5772
closedisxdigit_l, iswxdigit_l not exported (missing from mapfile)
Start date:
2015-03-29
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
Topic says it all -- the libc mapfile misses these symbols. Perhaps the symbols test ought to try linking these symbols to catch this sort of error in the future.
Related issues
Updated by Garrett D'Amore over 8 years ago
- Assignee set to Garrett D'Amore
- % Done changed from 0 to 90
- Tags deleted (
needs-triage)
Updated by Garrett D'Amore over 8 years ago
Here's a test program:
#include <wctype.h> #include <stdlib.h> #include <stdio.h> #include <err.h> #include <locale.h> int main(int argc, char **argv) { int z = '0'; int a = 'A'; int g = 'G'; wint_t wz = '0'; wint_t wa = 'A'; wint_t wg = 'g'; locale_t l; l = newlocale(LC_ALL_MASK, "POSIX", (locale_t)0); if (l == NULL) err(EXIT_FAILURE, "newlocale"); if (!isxdigit_l(z, l)) errx(EXIT_FAILURE, "isxdigit_l(z) failed"); if (!isxdigit_l(a, l)) errx(EXIT_FAILURE, "isxdigit_l(a) failed"); if (isxdigit_l(g, l)) errx(EXIT_FAILURE, "isxdigit_l(g) should have failed"); if (!iswxdigit_l(wz, l)) errx(EXIT_FAILURE, "iswxdigit_l(wz) failed"); if (!iswxdigit_l(wa, l)) errx(EXIT_FAILURE, "iswxdigit_l(wg) failed"); if (iswxdigit_l(wg, l)) errx(EXIT_FAILURE, "iswxdigit_l(wg) should have failed"); printf("OK\\\\n"); return (0); }
Updated by Electric Monk over 8 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
git commit 309d9ad9da46080f1b86b839b1c868d8769899c0
commit 309d9ad9da46080f1b86b839b1c868d8769899c0 Author: Garrett D'Amore <garrett@damore.org> Date: 2015-04-05T19:48:47.000Z 5772 isxdigit_l, iswxdigit_l not exported (missing from mapfile) Reviewed by: Rich Lowe <richlowe@richlowe.net> Reviewed by: Josef Sipek <jeffpc@josefsipek.net> Approved by: Dan McDonald <danmcd@omniti.com>
Updated by Yuri Pankov over 7 years ago
- Related to Bug #6726: ctype(3C): missing description for isxdigit_l added
Actions