Thanks, I installed that. It fixes a formatting glitch introduced in
2025c, when zic acquired the -D option.
This prompted me to ask Gemini for a quick review of man page
formatting, and it found another glitch: a missing ")" in newtzset.3. It
also advised to quote arguments of .B etc., advice that I elected to
follow for reasons of consistency.
While doing that, I found two more glitches myself: an improperly bolded
"," in newtzset.3, and an improperly italicized "is" in zic.8.
All fixed in the attached.
From 208a7fd47be89682ad1c11726d9056c138cca5b8 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Tue, 23 Jun 2026 09:05:06 -0700
Subject: [PROPOSED] Fix man page missing ")", wrong-font ",", "is"
Also, quote arguments of .B etc. more consistently.
---
newctime.3 | 20 ++++++++++----------
newstrftime.3 | 4 ++--
newtzset.3 | 16 ++++++++--------
time2posix.3 | 8 ++++----
zic.8 | 3 ++-
5 files changed, 26 insertions(+), 25 deletions(-)
diff --git a/newctime.3 b/newctime.3
index a8779e6a..f22e69f4 100644
--- a/newctime.3
+++ b/newctime.3
@@ -5,34 +5,34 @@
asctime, ctime, difftime, gmtime, localtime, mktime \- convert date and time
.SH SYNOPSIS
.nf
-.B #include <time.h>
+.B "#include <time.h>"
.PP
-.B struct tm *localtime(time_t const *clock);
+.B "struct tm *localtime(time_t const *clock);"
.B "struct tm *localtime_r(time_t const *restrict clock,"
.B " struct tm *restrict result);"
.B "struct tm *localtime_rz(timezone_t restrict zone,"
.B " time_t const *restrict clock,"
.B " struct tm *restrict result);"
.PP
-.B struct tm *gmtime(time_t const *clock);
+.B "struct tm *gmtime(time_t const *clock);"
.B "struct tm *gmtime_r(time_t const *restrict clock,"
.B " struct tm *restrict result);"
.PP
-.B time_t mktime(struct tm *tm);
+.B "time_t mktime(struct tm *tm);"
.B "time_t mktime_z(timezone_t restrict zone,"
.B " struct tm *restrict tm);"
.PP
-.B double difftime(time_t time1, time_t time0);
+.B "double difftime(time_t time1, time_t time0);"
.PP
-.B [[deprecated]] char *asctime(struct tm const *tm);
-.B [[deprecated]] char *ctime(time_t const *clock);
+.B "[[deprecated]] char *asctime(struct tm const *tm);"
+.B "[[deprecated]] char *ctime(time_t const *clock);"
.PP
/* Only in POSIX.1-2017 and earlier. */
-.B char *ctime_r(time_t const *clock, char *buf);
+.B "char *ctime_r(time_t const *clock, char *buf);"
.B "char *asctime_r(struct tm const *restrict tm,"
.B " char *restrict result);"
.PP
-.B cc ... \-ltz
+.BR cc " ... " \-ltz
.fi
.SH DESCRIPTION
.ie '\(en'' .ds en \-
@@ -240,7 +240,7 @@ are in the
.B <time.h>
header file.
The structure (of type)
-.B struct tm
+.B "struct tm"
includes the following fields:
.RS
.PP
diff --git a/newstrftime.3 b/newstrftime.3
index 182f44f7..7d23b14a 100644
--- a/newstrftime.3
+++ b/newstrftime.3
@@ -40,12 +40,12 @@
strftime \- format date and time
.SH SYNOPSIS
.nf
-.B #include <time.h>
+.B "#include <time.h>"
.PP
.B "size_t strftime(char *restrict buf, size_t maxsize,"
.B " char const *restrict format, struct tm const *restrict timeptr);"
.PP
-.B cc ... \-ltz
+.BR cc " ... " \-ltz
.fi
.SH DESCRIPTION
.ie '\(lq'' .ds lq \&"\"
diff --git a/newtzset.3 b/newtzset.3
index 77e76c9d..366bf302 100644
--- a/newtzset.3
+++ b/newtzset.3
@@ -5,23 +5,23 @@
tzset \- initialize time conversion information
.SH SYNOPSIS
.nf
-.B #include <time.h>
+.B "#include <time.h>"
.PP
.BI "timezone_t tzalloc(char const *" TZ );
.PP
.BI "void tzfree(timezone_t " tz );
.PP
-.B void tzset(void);
+.B "void tzset(void);"
.PP
/* Optional and obsolescent: */
.br
-.B extern char *tzname[];
+.B "extern char *tzname[];"
.br
-.B extern long timezone;
+.B "extern long timezone;"
.br
-.B extern int daylight;
+.B "extern int daylight;"
.PP
-.B cc ... \-ltz
+.BR cc " ... " \-ltz
.fi
.SH DESCRIPTION
.ie '\(en'' .ds en \-
@@ -161,7 +161,7 @@ seconds) \*(en if present \*(en between zero and 59. If preceded by a
.q "\-" ,
the time zone shall be east of the Prime Meridian; otherwise it shall be
west (which may be indicated by an optional preceding
-.q "+" .
+.q "+" ).
.TP
.I rule
Indicates when to change to and back from daylight saving time. The
@@ -420,7 +420,7 @@ callers can instead use the
and
.I tm_zone
members of
-.B struct tm,
+.BR "struct tm",
or use
.B strftime
with "%z" or "%Z".
diff --git a/time2posix.3 b/time2posix.3
index adbff83a..f76915b1 100644
--- a/time2posix.3
+++ b/time2posix.3
@@ -5,13 +5,13 @@
time2posix, posix2time \- convert seconds since the Epoch
.SH SYNOPSIS
.nf
-.B #include <time.h>
+.B "#include <time.h>"
.PP
-.B time_t time2posix(time_t t);
+.B "time_t time2posix(time_t t);"
.PP
-.B time_t posix2time(time_t t);
+.B "time_t posix2time(time_t t);"
.PP
-.B cc ... \-ltz
+.BR cc " ... " \-ltz
.fi
.SH DESCRIPTION
.ie '\(en'' .ds en \-
diff --git a/zic.8 b/zic.8
index ae0b5dc9..8c964435 100644
--- a/zic.8
+++ b/zic.8
@@ -124,7 +124,8 @@ is
(the default), any already-existing link is removed.
.sp
Unless
-.I timezone is
+.I timezone
+is
.q "\-" ,
this option is obsolete and is no longer supported by most runtimes.
Among other things it should not be used for timestamps after the year 2037,
--
2.53.0