[31/59] "POSIX TZ" -> "proleptic TZ"

Message ID 20250105055750.1668721-32-eggert@cs.ucla.edu (mailing list archive)
State New
Headers
Series time: sync mktime from Gnulib |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Paul Eggert Jan. 5, 2025, 5:57 a.m. UTC
  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(-)
  

Patch

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)
 {