[tz] [PROPOSED 2/5] Capitalize “POSIX”

Paul Eggert eggert at cs.ucla.edu
Sun Nov 19 21:30:12 UTC 2023


Change the relatively-rare instances of “Posix” to “POSIX”,
in the interests of uniformity.
---
 Makefile     |  8 ++++----
 NEWS         |  2 +-
 localtime.c  |  4 ++--
 northamerica |  2 +-
 tzselect.8   |  2 +-
 tzselect.ksh | 14 +++++++-------
 6 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/Makefile b/Makefile
index b3cc6702..a0f4f5ef 100644
--- a/Makefile
+++ b/Makefile
@@ -384,7 +384,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \
 #
 # NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put
 # out by the National Institute of Standards and Technology
-# which claims to test C and Posix conformance.  If you want to pass PCTS, add
+# which claims to test C and POSIX conformance.  If you want to pass PCTS, add
 #	-DPCTS
 # to the end of the "CFLAGS=" line.
 #
@@ -424,18 +424,18 @@ ZFLAGS=
 
 ZIC_INSTALL=	$(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS)
 
-# The name of a Posix-compliant 'awk' on your system.
+# The name of a POSIX-compliant 'awk' on your system.
 # mawk 1.3.3 and Solaris 10 /usr/bin/awk do not work.
 # Also, it is better (though not essential) if 'awk' supports UTF-8,
 # and unfortunately mawk and busybox awk do not support UTF-8.
 # Try AWK=gawk or AWK=nawk if your awk has the abovementioned problems.
 AWK=		awk
 
-# The full path name of a Posix-compliant shell, preferably one that supports
+# The full path name of a POSIX-compliant shell, preferably one that supports
 # the Korn shell's 'select' statement as an extension.
 # These days, Bash is the most popular.
 # It should be OK to set this to /bin/sh, on platforms where /bin/sh
-# lacks 'select' or doesn't completely conform to Posix, but /bin/bash
+# lacks 'select' or doesn't completely conform to POSIX, but /bin/bash
 # is typically nicer if it works.
 KSHELL=		/bin/bash
 
diff --git a/NEWS b/NEWS
index 295141f8..82cd5da1 100644
--- a/NEWS
+++ b/NEWS
@@ -4341,7 +4341,7 @@ Release 2012j - 2012-11-12 18:34:49 -0800
   now uses tz at iana.org rather than the old elsie address.
 
   zic -v now complains about abbreviations that are less than 3
-  or more than 6 characters, as per Posix.  Formerly, it checked
+  or more than 6 characters, as per POSIX.  Formerly, it checked
   for abbreviations that were more than 3.
 
   'make public' no longer puts its temporary directory under /tmp,
diff --git a/localtime.c b/localtime.c
index a54d3ae4..1f6193a4 100644
--- a/localtime.c
+++ b/localtime.c
@@ -869,8 +869,8 @@ getsecs(register const char *strp, int_fast32_t *const secsp)
 	int_fast32_t secsperhour = SECSPERHOUR;
 
 	/*
-	** 'HOURSPERDAY * DAYSPERWEEK - 1' allows quasi-Posix rules like
-	** "M10.4.6/26", which does not conform to Posix,
+	** 'HOURSPERDAY * DAYSPERWEEK - 1' allows quasi-POSIX rules like
+	** "M10.4.6/26", which does not conform to POSIX,
 	** but which specifies the equivalent of
 	** "02:00 on the first Sunday on or after 23 Oct".
 	*/
diff --git a/northamerica b/northamerica
index d8e3601c..8ac106ab 100644
--- a/northamerica
+++ b/northamerica
@@ -1453,7 +1453,7 @@ Rule	StJohns	1989	2006	-	Apr	Sun>=1	0:01	1:00	D
 Rule	StJohns	2007	2011	-	Mar	Sun>=8	0:01	1:00	D
 Rule	StJohns	2007	2010	-	Nov	Sun>=1	0:01	0	S
 #
-# St John's has an apostrophe, but Posix file names can't have apostrophes.
+# St John's has an apostrophe, but POSIX file names can't have apostrophes.
 # Zone	NAME		STDOFF	RULES	FORMAT	[UNTIL]
 Zone America/St_Johns	-3:30:52 -	LMT	1884
 			-3:30:52 StJohns N%sT	1918
diff --git a/tzselect.8 b/tzselect.8
index 4578090f..ee031614 100644
--- a/tzselect.8
+++ b/tzselect.8
@@ -95,7 +95,7 @@ Output version information and exit.
 .SH "ENVIRONMENT VARIABLES"
 .TP
 \f3AWK\fP
-Name of a Posix-compliant
+Name of a POSIX-compliant
 .B awk
 program (default:
 .BR awk ).
diff --git a/tzselect.ksh b/tzselect.ksh
index 98774c03..dac931d4 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -10,7 +10,7 @@ REPORT_BUGS_TO=tz at iana.org
 
 # Porting notes:
 #
-# This script requires a Posix-like shell and prefers the extension of a
+# This script requires a POSIX-like shell and prefers the extension of a
 # 'select' statement.  The 'select' statement was introduced in the
 # Korn shell and is available in Bash and other shell implementations.
 # If your host lacks both Bash and the Korn shell, you can get their
@@ -27,7 +27,7 @@ REPORT_BUGS_TO=tz at iana.org
 
 #
 # This script also uses several features of modern awk programs.
-# If your host lacks awk, or has an old awk that does not conform to Posix,
+# If your host lacks awk, or has an old awk that does not conform to POSIX,
 # you can use either of the following free programs instead:
 #
 #	Gawk (GNU awk) <https://www.gnu.org/software/gawk/>
@@ -45,10 +45,10 @@ say() {
     printf '%s\n' "$1"
 }
 
-# Check for awk Posix compliance.
+# Check for awk POSIX compliance.
 ($AWK -v x=y 'BEGIN { exit 123 }') </dev/null >/dev/null 2>&1
 [ $? = 123 ] || {
-	say >&2 "$0: Sorry, your '$AWK' program is not Posix compatible."
+	say >&2 "$0: Sorry, your '$AWK' program is not POSIX compatible."
 	exit 1
 }
 
@@ -397,7 +397,7 @@ while
 	eval '
 	    doselect '"$quoted_continents"' \
 		"coord - I want to use geographical coordinates." \
-		"TZ - I want to specify the timezone using the Posix TZ format." \
+		"TZ - I want to specify the timezone using the POSIX TZ format." \
 		"time - I know local time already."
 	    continent=$select_result
 	    case $continent in
@@ -409,7 +409,7 @@ while
 
 	case $continent in
 	TZ)
-		# Ask the user for a Posix TZ string.  Check that it conforms.
+		# Ask the user for a POSIX TZ string.  Check that it conforms.
 		while
 			echo >&2 'Please enter the desired value' \
 				'of the TZ environment variable.'
@@ -433,7 +433,7 @@ while
 				exit 0
 			}'
 		do
-		    say >&2 "'$TZ' is not a conforming Posix timezone string."
+		    say >&2 "'$TZ' is not a conforming POSIX timezone string."
 		done
 		TZ_for_date=$TZ;;
 	*)
-- 
2.40.1




More information about the tz mailing list