public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112652] g++.dg/cpp26/literals2.C FAILs Date: Tue, 12 Mar 2024 15:51:08 +0000 [thread overview] Message-ID: <bug-112652-4-EK1xmE87Kv@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112652-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112652 --- Comment #5 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Given that C++ says e.g. in https://eel.is/c++draft/lex.ccon#3.1 > that program is ill-formed if some character lacks encoding in the execution > character set, I'm afraid the Solaris iconv behavior results in violation of > the C++ standard requirements, it is hard to argue that in the Solaris case > e.g. ISO-8859-1 execution charset would be some special character set where ? > character represents all Unicode characters which don't have a representation > in the character set in addition to ?. I've now started digging into this myself. * Solaris iconv(1) says output. If no conversion exists for a particular character, an imple- mentation-defined conversion is performed on this character. * This seems to at least partially match with XPG7: -s Suppress any messages written to standard error concerning invalid characters. When -s is not used, the results of encountering invalid characters in the input stream (either those that are not valid characters in the codeset of the input file or that have no corresponding character in the codeset of the output file) shall be specified in the system documentation. The presence or absence of -s shall not affect the exit status of iconv. AFAIU that's related to what Solaris iconv(1) does, although they don't specify the output '?' and produce no message. However, they still exit with 0, which seems wrong to me. I've not yet tried to understand what either iconv(3) has to say on the matter. > I'm afraid we don't want to maintain iconv replacement inside of libcpp though. Agreed.
next prev parent reply other threads:[~2024-03-12 15:51 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-21 15:04 [Bug c++/112652] New: " ro at gcc dot gnu.org 2023-11-21 15:05 ` [Bug c++/112652] " ro at gcc dot gnu.org 2023-11-21 18:32 ` jakub at gcc dot gnu.org 2023-11-22 15:09 ` ro at CeBiTec dot Uni-Bielefeld.DE 2023-11-22 15:26 ` jakub at gcc dot gnu.org 2023-11-24 9:05 ` jakub at gcc dot gnu.org 2024-03-12 15:51 ` ro at CeBiTec dot Uni-Bielefeld.DE [this message] 2024-03-13 13:22 ` ro at CeBiTec dot Uni-Bielefeld.DE 2024-03-13 13:46 ` jakub at gcc dot gnu.org 2024-03-13 14:59 ` ro at CeBiTec dot Uni-Bielefeld.DE 2024-03-13 15:45 ` jakub at gcc dot gnu.org 2024-03-22 13:52 ` ro at CeBiTec dot Uni-Bielefeld.DE 2024-05-07 7:42 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112652-4-EK1xmE87Kv@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).