This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33748] New: format warnings don't take input charset into account
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 12:18:26 -0000
- Subject: [Bug c/33748] New: format warnings don't take input charset into account
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program should not fail with "-Werror -Wformat
-finput-charset=ISO-2022-JP -fexec-charset=ISO-2022-JP":
#include <stdio.h>
int main()
{
printf ("\x1B$B%s\x1B(B");
}
because the %s is part of a multi-byte character sequence representing the
Unicode character U+3263 (KATAKANA LETTER BI).
--
Summary: format warnings don't take input charset into account
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
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=33748