C++ Logo

sg16

Advanced search

Re: [SG16] Skipped polls from today's SG16 meeting

From: Corentin Jabot <corentinjabot_at_[hidden]>
Date: Wed, 26 May 2021 23:46:26 +0200
On Wed, May 26, 2021 at 11:01 PM Peter Brett via SG16 <sg16_at_[hidden]>
wrote:

> Hi all,
>
> I prepared these 2 polls for tonight's meeting, but we did not have the
> opportunity to vote on them. I hope we will be able to vote on them next
> time. Please suggest alternative or additional polls that you think would
> be informative!
>
> Peter
>
>
> If, and only if, the literal encoding is UTF-8, <print> facilities should
> assume
> that their formatted results are UTF-8 text.
>
> SF F N A SA
>
> Attendance:
>
> Consensus:
>
> Author's position:
>
>
> If a <print> facility assumes that the result of formatting is UTF-8 text,
> but
> it is not, then the program is ill-formed, no diagnostic required.
>

Please make it UB
IFNDR is really nasty and should be reserved for things that the compiler
has no real control over like ODR issues.

Library has wording stating that preconditions violations are UB
http://eel.is/c++draft/library#structure.specifications-3.3
I think having wording along the line of "Precondition: The format string
is UTF-8 encoded" in the wording of vprint_unicode is the best way to
achieve this intent.


>
> SF F N A SA
>
> Attendance:
>
> Consensus:
>
> Author's position:
>
> --
> SG16 mailing list
> SG16_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>

Received on 2021-05-26 16:46:39