From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id D81C13857820 for ; Tue, 17 May 2022 18:12:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D81C13857820 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.91,233,1647331200"; d="scan'208";a="75861825" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 17 May 2022 10:12:51 -0800 IronPort-SDR: uvA3217xxQU3itXbSNNAmjGFzfSGJLzi/0p5qlY5SiAlqtpPB1cdPPe7LLmRYpgehyK99JXPc3 KbIwuOUz1a2RAFjuceYfRLlelyhcEWOu9HoIFfjJkRlwc7F5xJpuR/psA15KtNDcNibDEXzn1c CVCXowxS9Gb+KGYzBetb3CVsVBgVNUDzaW35gEhcEdZfF0T7KEJjlWutWY6loIjM45/vEysgRx IPxvxdMZvoX1EjNDS3NYP/27tdNBbHzWW9zjYat8JEju5+Ozi+wHt9Fyl6k435XgMqlgncRcIO vuc= Date: Tue, 17 May 2022 18:12:46 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Adhemerval Zanella CC: Tom Honermann , libc-alpha Subject: Re: [PATCH 2/3]: C++20 P0482R6 and C2X N2653: Implement mbrtoc8, c8rtomb, char8_t In-Reply-To: Message-ID: References: <57610f50-dd95-fd32-1102-5f1cda440891@honermann.net> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3113.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2022 18:12:55 -0000 On Tue, 17 May 2022, Adhemerval Zanella wrote: > > +/* This is the private state used if PS is NULL. */ > > +static mbstate_t state; > > Although it was done for other convertion interfaces, I wonder if we should > keep supporting this mt-unsafe usage for newer ones. It was not clear from In C23 it's implementation-defined whether the internal state for such functions has static or thread storage duration (see the general introduction to the uchar.h functions). -- Joseph S. Myers joseph@codesourcery.com