This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] assume sprintf formatting of wide characters may fail (PR 86853)
- From: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- To: Jeff Law <law at redhat dot com>, Martin Sebor <msebor at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 9 Aug 2018 19:29:07 +0000
- Subject: Re: [PATCH] assume sprintf formatting of wide characters may fail (PR 86853)
>> + bool one_2_one_ascii
>> + = (target_to_host_charmap[0] == 1 && target_to_host ('a') == 97);
> Hmm. Is this really sufficient? I have nowhere near enough knowledge
> of the potential target character sets to know if this is sufficiently
> tight.
Shouldn't it be target_to_host (97) == 'a' ?
Bernd.