Project

General

Profile

Actions

Bug #5772

closed

isxdigit_l, iswxdigit_l not exported (missing from mapfile)

Added by Garrett D'Amore over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
-
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

Related to illumos gate - Feature #5795: Link time symbol visibility test desiredNew2015-04-06

Actions
Related to illumos gate - Bug #6726: ctype(3C): missing description for isxdigit_lClosedRobert Mustacchi2016-03-06

Actions
Actions #1

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)
Actions #2

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);
}

Actions #3

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>

Actions #4

Updated by Yuri Pankov over 7 years ago

  • Related to Bug #6726: ctype(3C): missing description for isxdigit_l added
Actions

Also available in: Atom PDF