[Bug c/65158] printf attribute error reporting assumes single-byte characters
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 14 18:09:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65158
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2018-09-14
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
There is no format specifier in C or POSIX that involves a multibyte character.
They're all single byte characters in the 7-bit ASCII range that should
convert to single byte characters in most (all?) encodings. It would take an
unusual character set to map a 7-bit character to a multibyte sequence. Is it
worth worrying about this corner case?
(-Wformat doesn't currently handle the -fexec-charset= option so that should
presumably be a higher priority problem to fix.)
More information about the Gcc-bugs
mailing list