public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38308]  New: -Wformat does not work for wide strings
@ 2008-11-28 16:38 bonzini at gnu dot org
  2008-11-28 17:00 ` [Bug c/38308] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: bonzini at gnu dot org @ 2008-11-28 16:38 UTC (permalink / raw)
  To: gcc-bugs

GCC does not warn for this:

int main()
{
  wprintf (L"%s", 5);
}

GCC should try converting the string to single-byte (e.g. to UTF-8, which would
work for any wchar_t encoding in which 0-127 maps to char's encoding) and test
the format string.


-- 
           Summary: -Wformat does not work for wide strings
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonzini at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-38308-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-06-08 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-28 16:38 [Bug c/38308] New: -Wformat does not work for wide strings bonzini at gnu dot org
2008-11-28 17:00 ` [Bug c/38308] " pinskia at gcc dot gnu dot org
2008-11-28 17:27 ` joseph at codesourcery dot com
2008-11-29  3:13 ` pinskia at gcc dot gnu dot org
     [not found] <bug-38308-4@http.gcc.gnu.org/bugzilla/>
2012-06-08 18:43 ` pinskia at gcc dot gnu.org

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).