From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 222521F8C8 for ; Fri, 8 Oct 2021 13:48:00 +0000 (UTC) Received: from localhost ([::1]:40000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYqEA-0002wd-TF for normalperson@yhbt.net; Fri, 08 Oct 2021 09:47:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYjUV-0003Qi-QL for bug-gnulib@gnu.org; Fri, 08 Oct 2021 02:36:24 -0400 Received: from shells.gnugeneration.com ([66.240.222.126]:42912) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYjUR-0003GG-Kb for bug-gnulib@gnu.org; Fri, 08 Oct 2021 02:36:21 -0400 Received: by shells.gnugeneration.com (Postfix, from userid 1000) id BC2C41A40C3C; Thu, 7 Oct 2021 23:36:14 -0700 (PDT) Date: Thu, 7 Oct 2021 23:36:14 -0700 From: Vito Caputo To: bug-gnulib@gnu.org Subject: [adhemerval.zanella@linaro.org: Re: strftime() _GNU_SOURCE extension request] Message-ID: <20211008063614.lvcgrneloowd25cg@shells.gnugeneration.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=66.240.222.126; envelope-from=swivel@shells.gnugeneration.com; helo=shells.gnugeneration.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 08 Oct 2021 09:43:17 -0400 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hello bug-gnulib, I'm not subscribed so please CC me directly in any replies if necessary. Please consider the below forwarded message, thanks. ----- Forwarded message from Adhemerval Zanella ----- Date: Thu, 7 Oct 2021 16:31:31 -0300 From: Adhemerval Zanella To: Vito Caputo , libc-help@sourceware.org Subject: Re: strftime() _GNU_SOURCE extension request User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 On 25/09/2021 03:15, Vito Caputo wrote: > Hello list, > > I'd like to propose a _GNU_SOURCE extension for strftime() treating > str=NULL similarly to snprintf()'s C99 handling of str=NULL; write > nothing to str, but return the number of bytes that /would/ be written > if str were non-NULL and sufficiently large. It sounds reasonable, I would suggestion you to check if gnulib is willing to push for such change all well, since the code came from them originally. ----- End forwarded message -----