Correctly handle %p in wprintf (BZ #16890)