#3642 new defect

Add iswalnum(), iswalpha() ... (and 18 others) to <wchar.h> header

Reported by: taneka zenon hans Owned by:
Priority: normal Milestone: Indefinite
Component: posix Version: 5
Severity: normal Keywords: POSIX-Compliance
Cc: Blocked By:
Blocking:

Description

#include <wchar.h> fails to declare function prototypes for

iswalnum()
iswalpha()
iswcntrl()
iswctype()
iswdigit()
iswgraph()
iswlower()
iswprint()
iswpunct()
iswspace()
iswupper()
iswxdigit()

as required to be POSIX-Compliant. Even though they are marked obsolescent, they should be implemented until the function prototype are removed (in a newer version).

When fixed, please remove #include <wctype.h> and the corresponding comments referring to this ticket, from the following files:

pwd: rtems/testsuites/psxtests/psxhdrs/wchar/

iswalnum.c
iswalpha.c
iswcntrl.c
iswctype.c
iswdigit.c
iswgraph.c
iswlower.c
iswprint.c
iswpunct.c
iswspace.c
iswupper.c
iswxdigit.c

Change History (3)

comment:1 Changed on Dec 7, 2018 at 5:35:00 PM by taneka zenon hans

Keywords: POSIX-Compliance added

comment:2 Changed on Dec 7, 2018 at 5:51:54 PM by taneka zenon hans

Hi! Since I don't have edit rights to the descriptions, I would add it as a comment for a mentor to add it inside:

Please add the following functions to the list of functions:

vfwprintf()
vfwscanf()
vswprintf()
vswscanf()
vwprintf()
vwscanf()
towlower()
towupper()

as well as the following files:

vfwprintf.c
vfwscanf.c
vswprintf.c
vswscanf.c
vwprintf.c
vwscanf.c
towlower.c
towupper.c

comment:3 Changed on Dec 7, 2018 at 5:52:15 PM by taneka zenon hans

Summary: Add iswalnum(), iswalpha() ... (and 10 others) to <wchar.h> headerAdd iswalnum(), iswalpha() ... (and 18 others) to <wchar.h> header
Note: See TracTickets for help on using tickets.