public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104906] New: UTF-8 bytes output in diagnostic regardless of locale
@ 2022-03-13 18:16 roland.illig at gmx dot de
  2022-03-14 10:20 ` [Bug c++/104906] " redi at gcc dot gnu.org
  2022-03-19 17:07 ` egallager at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: roland.illig at gmx dot de @ 2022-03-13 18:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104906

            Bug ID: 104906
           Summary: UTF-8 bytes output in diagnostic regardless of locale
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
                CC: egallager at gcc dot gnu.org
  Target Milestone: ---

>From cp/module.cc:
          inform (loc, "compiler is %sversion %s%s%s",
                  IS_EXPERIMENTAL (my_ver) ? "experimental " : "",
                  my_string,
                  reject_p ? "" : flag_module_version_ignore
                  ? ", be it on your own head!" : ", close enough?",
                  reject_p ? "" : " \xc2\xaf\\_(\xe3\x83\x84)_/\xc2\xaf");

Are you sure that you want to output this UTF-8 sequence in locale "C"? 
Furthermore, the conditional strings must be translatable.  See the GCC
diagnostics guidelines for more information.

What would happen if this diagnostic were printed in an EBCDIC environment? 
Might the UTF-8 sequence "\xe3\x83\x84" show up as "Tcd" there?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/104906] UTF-8 bytes output in diagnostic regardless of locale
  2022-03-13 18:16 [Bug c++/104906] New: UTF-8 bytes output in diagnostic regardless of locale roland.illig at gmx dot de
@ 2022-03-14 10:20 ` redi at gcc dot gnu.org
  2022-03-19 17:07 ` egallager at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2022-03-14 10:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104906

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-03-14
     Ever confirmed|0                           |1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/104906] UTF-8 bytes output in diagnostic regardless of locale
  2022-03-13 18:16 [Bug c++/104906] New: UTF-8 bytes output in diagnostic regardless of locale roland.illig at gmx dot de
  2022-03-14 10:20 ` [Bug c++/104906] " redi at gcc dot gnu.org
@ 2022-03-19 17:07 ` egallager at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-03-19 17:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104906

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Nathan Sidwell's string

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-19 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-13 18:16 [Bug c++/104906] New: UTF-8 bytes output in diagnostic regardless of locale roland.illig at gmx dot de
2022-03-14 10:20 ` [Bug c++/104906] " redi at gcc dot gnu.org
2022-03-19 17:07 ` egallager at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).