Hi Tom,

 

I think the list of error-handling use-cases would all be valuable additions to the paper. I’d also really like to see an example of using the UTF transcoding facilities for UTF-8 validation to report a list of places in the input in which ill-formed UTF-8 occurs.

 

Best regards,

 

             Peter

 

From: SG16 <sg16-bounces@lists.isocpp.org> On Behalf Of Tom Honermann via SG16
Sent: 23 August 2023 17:07
To: sg16@lists.isocpp.org
Cc: Tom Honermann <tom@honermann.net>
Subject: Re: [SG16] Agenda for the 2023-08-23 SG16 telecon

 

EXTERNAL MAIL

On 8/23/23 11:40 AM, Tom Honermann via SG16 wrote:

SG16 will hold a telecon on Wednesday, August 23rd, at 19:30 UTC (timezone conversion).

That is today, in about 4 hours. Obviously, I'm still struggling to keep up with all the things.

The agenda follows.

P2902R0 is a new paper from Victor that seeks to establish portable behavior for formatting of objects of type char regardless of the implementation-defined signedness of char.

P2728 was last discussed during the 2023-05-10 SG16 telecon. I have continued to hear feedback that the motivation for the proposal, as presented in the paper, is lacking. I'd like to focus on giving Zach specific, concrete, and clear direction regarding how to improve the paper in this respect. Comments should focus on what is perceived to be missing and what changes would fill those gaps. Following that, I would like to focus on error handling. The proposal includes a transcoding_error_handler concept and a use_replacement_character class that models that concept and that provides the default error handling behavior. The error handler is specified to take a message passed as an object of type std::string_view, but does not specify the contents of the message. The error handler is constrained to return a single value of type char32_t and is not given access to the source text (except. possibly via the message, which is always char-based). Is this sufficient? If not, what changes are needed?

Zach, with regard to error handling, I would like for the paper to present examples of error handlers that implement each of the following:

(I believe only one of these is possible with the proposal as it currently stands.)

Tom.

Tom.