From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zimbra.cs.ucla.edu (zimbra.cs.ucla.edu [131.179.128.68]) by sourceware.org (Postfix) with ESMTPS id 397FD3858D37 for ; Thu, 18 Aug 2022 03:17:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 397FD3858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6AACB1600C0; Wed, 17 Aug 2022 20:16:59 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pvLsw2vgyCg3; Wed, 17 Aug 2022 20:16:58 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B592A1600C2; Wed, 17 Aug 2022 20:16:58 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6nRuzOWDT-gO; Wed, 17 Aug 2022 20:16:58 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8B66E1600C0; Wed, 17 Aug 2022 20:16:58 -0700 (PDT) Message-ID: Date: Wed, 17 Aug 2022 20:16:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: Carlos O'Donell , DJ Delorie Cc: libc-alpha@sourceware.org References: <8c91bbc3-95cc-88d0-ffe9-5da08fcfdf38@redhat.com> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: [swbz 29035] mktime vs non-DST In-Reply-To: <8c91bbc3-95cc-88d0-ffe9-5da08fcfdf38@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, 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: Thu, 18 Aug 2022 03:17:01 -0000 On 8/17/22 19:37, Carlos O'Donell wrote: > The mktime() interface has been around for a long time and users do not expect > and have noticed the semantic changes we are seeing here today. The semantic changes that bother users boil down to the following: glibc mktime returns -1 when users specify impossible is_dst flags, whereas mktime used to succeed. That problem is fixed in Gnulib. The only disagreement between Gnulib and old (2.28) glibc in this area, is in relatively obscure cases where we have not seen any bug reports, and in these cases old glibc mostly gets it wrong (for example, see my previous email), whereas Gnulib mostly gets it right. Let's stick with the Gnulib behavior here.