public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/16890] New: fwprintf does not print NULL pointers properly
@ 2014-04-30 23:54 james410 at cowgill dot org.uk
  2014-05-01 18:52 ` [Bug stdio/16890] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: james410 at cowgill dot org.uk @ 2014-04-30 23:54 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16890

            Bug ID: 16890
           Summary: fwprintf does not print NULL pointers properly
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: minor
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: james410 at cowgill dot org.uk

fwprintf (and associated wide printf functions) print "(" instead of "(nil)"
when passed a NULL pointer to a "%p" format string.

Test Program
----------------------
#include <stdio.h>
#include <wchar.h>

int main(void)
{
    fprintf(stderr, " fprintf: %p\n", NULL);
    fwprintf(stdout, L"fwprintf: %p\n", NULL);
    return 0;
}

Expected Results
----------------------
 fprintf: (nil)
fwprintf: (nil)

Actual Results
----------------------
 fprintf: (nil)
fwprintf: (

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-29 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 23:54 [Bug stdio/16890] New: fwprintf does not print NULL pointers properly james410 at cowgill dot org.uk
2014-05-01 18:52 ` [Bug stdio/16890] " cvs-commit at gcc dot gnu.org
2014-05-01 18:53 ` schwab@linux-m68k.org
2014-06-12 19:29 ` fweimer at redhat dot com
2015-01-29 13:54 ` lev_ustal_kak at mail dot ru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).