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

Reply via email to