This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/12631] New: wcp[n]cpy are required by POSIX 2008


http://sourceware.org/bugzilla/show_bug.cgi?id=12631

           Summary: wcp[n]cpy are required by POSIX 2008
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: eblake@redhat.com


$ printf '#include <wchar.h>\n' | gcc -D_POSIX_C_SOURCE=200809L -E -\
  | grep 'wcpn\?cpy'
$ printf '#include <wchar.h>\n' | gcc -D_GNU_SOURCE=1 -E -\
  | grep 'wcpn\?cpy'
extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
extern wchar_t *wcpncpy (wchar_t *__restrict __dest,
$

Oops - POSIX 2008 requires these declarations:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcpcpy.html

http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=dbb0472f removed them in
error.  Yes, they should _not_ be visible when going for strict ANSI
compliance, but that's the point of _POSIX_C_SOURCE - to request POSIX
extensions to ANSI C.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]