From patchwork Sun Jan 5 05:57:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Eggert X-Patchwork-Id: 104078 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B4D483858D21 for ; Sun, 5 Jan 2025 06:31:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4D483858D21 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.a=rsa-sha256 header.s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C header.b=G4Et33qR X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail.cs.ucla.edu (mail.cs.ucla.edu [131.179.128.66]) by sourceware.org (Postfix) with ESMTPS id A9D313858403 for ; Sun, 5 Jan 2025 05:59:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A9D313858403 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A9D313858403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=131.179.128.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056773; cv=none; b=UiSUo4QhUtnOyeitdQLcBuaBDYSWBbDscwgDZ3ip0kKEFPycH0S+SoTEjbYktD2quJ9kKtrnlW4qAzbyWyeTDXBeo/Ki7JD5JYoEldZXY675KmlCZEKX2+bIPO7w0QAIQmySINF2probl6qxGW9uZ7ZboP8zysJBpk45vCRTcGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056773; c=relaxed/simple; bh=T/S8OkNotIiwk+qtrJxG6EkcwT0Hp+auR5/HwaxgmAE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VZPbm+r2nnqhg8li+wAO4yPOe9cbDmCnMsiIFbjVV7lLbZQBB0wtS3Af/573X4ShemvSJvqHeeKEN8wJ5US5I+TE9JCpqA1oleUrHEhXtpZG6ovUNFN7wWYwTnYgRmdCIkEY1HQ5LCiG1LiUXZ+Fwo2Pil9K8AdAMvTrMXWJXX0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9D313858403 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 2B6003C123845 for ; Sat, 4 Jan 2025 21:59:33 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id vXmLfVYYtr4S; Sat, 4 Jan 2025 21:59:32 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D1C373C123843; Sat, 4 Jan 2025 21:59:32 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu D1C373C123843 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1736056772; bh=qUJvycwbCT9RIJXXcvZ4Cvhb7C3KgkzASZlTcFgDWdA=; h=From:To:Date:Message-ID:MIME-Version; b=G4Et33qRF7kesPemqKIUGi67zpjWT67xTKbVWh0f1nmJVJpAd65MJIdMmRn1FZjy9 VFc6uFh0qC4J8yaSrxKe0zLxKasgV3VPKBLqnBHSLWpTU4rmMS9P2itk6CSw2ciLcC QYv3L6KqvNFDcLsr1U65wwze38I1Sm8L5IDaZ4ISlqP+6uwHN4FnAqwhgl5tC4hriP myOCq0KL9fcatesq7OzqLayi/FYSqLaC7W4PChYkpHEIc6TbHthsIYsLHT3FLC9d5A UCnkSbiTjSSZhxyNEJpcIpBRq+O62v4rrB+spYN7eveCFeiy7QJUtopTXNzNrn4e/L DPFofJv8D+aKQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id dKXhH_l8xgat; Sat, 4 Jan 2025 21:59:32 -0800 (PST) Received: from wing.home (unknown [47.154.28.214]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id BAFAF3C082EB9; Sat, 4 Jan 2025 21:59:32 -0800 (PST) From: Paul Eggert To: libc-alpha@sourceware.org Cc: Paul Eggert Subject: [PATCH 31/59] "POSIX TZ" -> "proleptic TZ" Date: Sat, 4 Jan 2025 21:57:06 -0800 Message-ID: <20250105055750.1668721-32-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> References: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> MIME-Version: 1.0 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org Since POSIX.1-2024 specifies geographical TZ as well as the traditional proleptic TZ settings, change commentary to say "proleptic TZ" rather than "POSIX TZ". --- time/tst-mktime2.c | 4 ++-- time/tzfile.c | 6 +++--- time/tzset.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/time/tst-mktime2.c b/time/tst-mktime2.c index 09f85134d2..f63e205b4c 100644 --- a/time/tst-mktime2.c +++ b/time/tst-mktime2.c @@ -55,9 +55,9 @@ spring_forward_gap (void) /* glibc (up to about 1998-10-07) failed this test. */ struct tm tm; - /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" + /* Use the proleptic POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even - on systems that don't support the Olson extension, or don't have the + on systems that don't support POSIX.1-2024, or don't have the full zoneinfo tables installed. */ set_timezone ("PST8PDT,M4.1.0,M10.5.0"); diff --git a/time/tzfile.c b/time/tzfile.c index 4ca1f3c0c8..d30faedfa2 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -258,7 +258,7 @@ __tzfile_read (const char *file) goto read_again; } - /* Compute the size of the POSIX time zone specification in the + /* Compute the size of the proleptic time zone specification in the file. This includes the trailing but not the leading newline. */ size_t tzspec_size; if (trans_width == 8) @@ -471,7 +471,7 @@ __tzfile_read (const char *file) while (i < typecnt) types[i++].isutc = 0; - /* Read the POSIX TZ-style information if possible. */ + /* Read the proleptic TZ information if possible. */ if (tzspec != NULL) { char *nl; @@ -620,7 +620,7 @@ __tzfile_compute (__time64_t timer, int use_localtime, goto found; } - /* Parse the POSIX TZ-style string. */ + /* Parse the proleptic TZ string. */ __tzset_parse_tz (tzspec); /* Convert to broken down structure. If this fails do not diff --git a/time/tzset.c b/time/tzset.c index 270383e383..7fdce9de7b 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -41,7 +41,7 @@ weak_alias (__timezone, timezone) __libc_lock_define_initialized (, __tzset_lock) /* This structure contains all the information about a - timezone given in the POSIX standard TZ envariable. */ + timezone given in a proleptic TZ string. */ typedef struct { const char *name; @@ -349,7 +349,7 @@ parse_rule (const char **tzp, int whichrule) return true; } -/* Parse the POSIX TZ-style string. */ +/* Parse a proleptic TZ string. */ void __tzset_parse_tz (const char *tz) {