This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/16890] New: fwprintf does not print NULL pointers properly
- From: "james410 at cowgill dot org.uk" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 30 Apr 2014 23:54:14 +0000
- Subject: [Bug stdio/16890] New: fwprintf does not print NULL pointers properly
- Auto-submitted: auto-generated
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.