[Bug c/38308] New: -Wformat does not work for wide strings
bonzini at gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 28 16:38:00 GMT 2008
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
More information about the Gcc-bugs
mailing list