From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id 1AD4E385626F for ; Wed, 18 May 2022 17:57:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1AD4E385626F Received: by mail-oi1-x22b.google.com with SMTP id v65so3559406oig.10 for ; Wed, 18 May 2022 10:57:33 -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=IxyApYGfhiOL0t3A0AvjBPQtTcz5Uy6ciPFfSdMFido=; b=VaOkjvjuYpW9j8IyYabIKsLjZxswa8X2hDgZx3OAeO7BeCgevIy62D7bNLFu829i0m iXnf1SUK8dIHnXTWSQkN3yJ7ZMBNaYKHtyXeIcnbaQi+XIdZPM0/OmOJYvrzejzYKASZ GlL5hNnFRoinl3tIOx3MzbVvnfgu7S5ScXySmiG/AXSz6xDSYFCH7dQGJzRpmXd9S4MN PJiW194E09HCP9obh08t44kXZ3r1uh2pYm6oCuRZKWt7LfEOGYbUMuoOUfwpHeS7XHZw GPmPublBTGqtdvMDwexglku+7nANLHZEwlotxuqvPEBQaEm8/0bffxgzuYWpZvti/ID9 chFA== X-Gm-Message-State: AOAM533CG20k4YYC6E5r1MSxXyflvS5aB/NbrhlhfAcJhME8vTUh6Hz3 /zPO9OETYp+G/OtuoxKEo/eD5g== X-Google-Smtp-Source: ABdhPJwOmzg/E8ucirmHzWJopZxbkyhEX3y0qY5jdEkK4+GvsLk3oEmQZf8rlWqRWaoln3Amr+ns9g== X-Received: by 2002:a05:6808:ec8:b0:2f9:6119:d6ed with SMTP id q8-20020a0568080ec800b002f96119d6edmr633849oiv.215.1652896652371; Wed, 18 May 2022 10:57:32 -0700 (PDT) Received: from ?IPV6:2804:431:c7cb:cdd6:1a62:669c:7cd2:ac43? ([2804:431:c7cb:cdd6:1a62:669c:7cd2:ac43]) by smtp.gmail.com with ESMTPSA id g10-20020a9d6a0a000000b0060603221235sm986281otn.5.2022.05.18.10.57.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 May 2022 10:57:31 -0700 (PDT) Message-ID: <1637e05d-48c1-a6d2-7561-751e186c24ba@linaro.org> Date: Wed, 18 May 2022 14:57:28 -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: Florian Weimer Cc: Tom Honermann , Adhemerval Zanella via Libc-alpha , Joseph Myers References: <57610f50-dd95-fd32-1102-5f1cda440891@honermann.net> <7c7e07a6-ebf0-71bc-cdc4-2f563b0e3b0f@linaro.org> <87h75ng7ye.fsf@oldenburg.str.redhat.com> <6b3dd2a0-80b9-a1bd-b157-c6f92cdf7fb2@linaro.org> <87czga7n9e.fsf@oldenburg.str.redhat.com> From: Adhemerval Zanella In-Reply-To: <87czga7n9e.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 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: Wed, 18 May 2022 17:57:34 -0000 On 18/05/2022 14:40, Florian Weimer wrote: > * Adhemerval Zanella: > >> Do we need to keep distinct states for each one or can use the a shared >> one? > > I think per-function state is required. We can allocate it on demand > because these functions may return ENOMEM. That was I suggested to Tom as well. In any case I think this is orthogonal to the mbrtoc8/c8rtomb patch.