public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106655] New: [C++23] P2295 - Support for UTF-8 as a portable source file encoding
@ 2022-08-16 17:23 mpolacek at gcc dot gnu.org
  2022-08-27 12:52 ` [Bug c++/106655] " jakub at gcc dot gnu.org
  2022-09-01  9:42 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-08-16 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106655
           Summary: [C++23] P2295 - Support for UTF-8 as a portable source
                    file encoding
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

See <https://wg21.link/p2295>.

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

* [Bug c++/106655] [C++23] P2295 - Support for UTF-8 as a portable source file encoding
  2022-08-16 17:23 [Bug c++/106655] New: [C++23] P2295 - Support for UTF-8 as a portable source file encoding mpolacek at gcc dot gnu.org
@ 2022-08-27 12:52 ` jakub at gcc dot gnu.org
  2022-09-01  9:42 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-08-27 12:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 53516
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53516&action=edit
gcc13-pr106655.patch

Untested patch to add -Winvalid-utf8 warning about invalid UTF-8 byte sequences
in comments.  In identifiers or string literals this is already diagnosed
elsewhere.  Not really sure if the warning should be on by default if
-finput-charset=UTF-8 is used and C++23 pedantic.

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

* [Bug c++/106655] [C++23] P2295 - Support for UTF-8 as a portable source file encoding
  2022-08-16 17:23 [Bug c++/106655] New: [C++23] P2295 - Support for UTF-8 as a portable source file encoding mpolacek at gcc dot gnu.org
  2022-08-27 12:52 ` [Bug c++/106655] " jakub at gcc dot gnu.org
@ 2022-09-01  9:42 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-09-01  9:42 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Implemented now.  One needs to use -std=c++23 -finput-charset=UTF-8
-pedantic-errors to get invalid UTF-8 pedantically rejected.

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

end of thread, other threads:[~2022-09-01  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 17:23 [Bug c++/106655] New: [C++23] P2295 - Support for UTF-8 as a portable source file encoding mpolacek at gcc dot gnu.org
2022-08-27 12:52 ` [Bug c++/106655] " jakub at gcc dot gnu.org
2022-09-01  9:42 ` jakub 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).