public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bruno at clisp dot org" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/30371] C2x strtol binary constant handling is incomplete Date: Tue, 18 Apr 2023 21:42:26 +0000 [thread overview] Message-ID: <bug-30371-131-CYSSJP7P2S@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30371-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30371 --- Comment #3 from Bruno Haible <bruno at clisp dot org> --- (In reply to Eric Blake from comment #1) > Note that C2X has not yet decided what to do about strto*l parsing with a > binary prefix. ... This is a > SILENT change in runtime behavior, based on which version of the standard > you build against. Yes, but the fact that it's a change in runtime behaviour is handled by the introduction of __isoc23_strto*, __isoc23_wcsto* in Joseph Myers' patch https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=64924422a99690d147a166b4de3103f3bf3eaf6c . If "Rejected" (as in comment #2) means that the final ISO C 23 will have the same wording as https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3088.pdf (the latest draft from 2023-01-24), then the wording there (§ 7.24.1.7, page 358 = 377/757) means that when parsing the input string "0b", only one character shall be consumed, like for the input string "0x". That is what this BZ and its proposed patch are about. > The final version of C2X may state something different than in the draft, > and glibc may have to course-correct yet again. True. But it's very unlikely that the final version of C2X will specify that in when parsing "0b" two characters shall be consumed, while when parsing "0x" only one character shall be consumed. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-04-18 21:42 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-04-18 17:44 [Bug libc/30371] New: " bruno at clisp dot org 2023-04-18 19:42 ` [Bug libc/30371] " kdudka at redhat dot com 2023-04-18 21:08 ` eblake at redhat dot com 2023-04-18 21:13 ` eblake at redhat dot com 2023-04-18 21:42 ` bruno at clisp dot org [this message] 2023-04-19 2:46 ` sam at gentoo dot org 2023-04-20 14:58 ` mliska at suse dot cz 2023-05-22 16:42 ` eggert at cs dot ucla.edu 2023-07-03 20:14 ` bruno at clisp dot 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-30371-131-CYSSJP7P2S@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.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).