From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by sourceware.org (Postfix) with ESMTPS id 269993858D3C for ; Tue, 17 May 2022 18:17:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 269993858D3C Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-f1d5464c48so739478fac.6 for ; Tue, 17 May 2022 11:17:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=rzUqcEmmip+hQP0lSenfRm9MxyTOFwU5AVnenAfGBuM=; b=V/1jrOxJig9Iq800I9eGJnW4B17Y6fZIpZreLwRqejh14FEPHQOHF4AYChb9oE+lZs J0reLgZtoYXbLN8Bd75Bd0Hi0D8f8gxq0zYDyVIUXHAJ/Puu9QGvKoKdyOm9NSw3eiXh CqVSr8T31XlQw4pNV8yper5eynjGvNtL8t54JbBlr6HyQ3LnTOV7ATF/viXyB0FgHhfW 3TcCeqBf5LDK2/S6qPuTdxgNYvuIrl3cQqhDUx8lcMNDV2yBe2y5h7cww+7J85YB0vct AMvivv1JPxeb/028RgdRR1g3xVxMFR38bSOGkeVDVCrRfIW6jjhj9c9bMRW8CwUks1BM X0BQ== X-Gm-Message-State: AOAM530n+H4hxVbyjP10464K1N0oNF8xZi1JyB3yyf6mRnL9G6zaPWHK f58uUpdYcTg0OTKHlN8kzdiB6AD0mUkRug== X-Google-Smtp-Source: ABdhPJyGdIvQ2hVUUn9oH9K9H/YRK+GkEL9OtzdPbCtRtxqEJ0lJ7WPBDlYkR/XvHJPfLRzwEJk/Kw== X-Received: by 2002:a05:6870:11c1:b0:e6:dca:5fdc with SMTP id 1-20020a05687011c100b000e60dca5fdcmr19534813oav.280.1652811475349; Tue, 17 May 2022 11:17:55 -0700 (PDT) Received: from ?IPV6:2804:431:c7cb:cdd6:7761:e576:cc9f:ba71? ([2804:431:c7cb:cdd6:7761:e576:cc9f:ba71]) by smtp.gmail.com with ESMTPSA id n9-20020a4ab349000000b0035eb4e5a6d3sm27149ooo.41.2022.05.17.11.17.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 May 2022 11:17:54 -0700 (PDT) Message-ID: <7c7e07a6-ebf0-71bc-cdc4-2f563b0e3b0f@linaro.org> Date: Tue, 17 May 2022 15:17:52 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 2/3]: C++20 P0482R6 and C2X N2653: Implement mbrtoc8, c8rtomb, char8_t Content-Language: en-US To: Joseph Myers Cc: Tom Honermann , libc-alpha References: <57610f50-dd95-fd32-1102-5f1cda440891@honermann.net> From: Adhemerval Zanella In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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:17:57 -0000 On 17/05/2022 15:12, Joseph Myers wrote: > 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). > Right, so glibc still need to support either mode.