Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/cal Use two-letter weekday abbreviations in the heading



details:   https://anonhg.NetBSD.org/src/rev/2e6b41c26650
branches:  trunk
changeset: 935292:2e6b41c26650
user:      kim <kim%NetBSD.org@localhost>
date:      Mon Jun 29 14:01:14 2020 +0000

description:
Use two-letter weekday abbreviations in the heading

This matches output from ncal (a.k.a. cal) as found in FreeBSD and
bsdmainutils. (Why had "T" been found more ambiguous than "S" already?)

diffstat:

 usr.bin/cal/cal.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r e0c16a043d14 -r 2e6b41c26650 usr.bin/cal/cal.c
--- a/usr.bin/cal/cal.c Mon Jun 29 09:57:46 2020 +0000
+++ b/usr.bin/cal/cal.c Mon Jun 29 14:01:14 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cal.c,v 1.29 2015/06/16 22:54:10 christos Exp $        */
+/*     $NetBSD: cal.c,v 1.30 2020/06/29 14:01:14 kim Exp $     */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)cal.c      8.4 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: cal.c,v 1.29 2015/06/16 22:54:10 christos Exp $");
+__RCSID("$NetBSD: cal.c,v 1.30 2020/06/29 14:01:14 kim Exp $");
 #endif
 #endif /* not lint */
 
@@ -88,8 +88,8 @@
        "July", "August", "September", "October", "November", "December",
 };
 
-static const char *day_headings = " S  M Tu  W Th  F  S";
-static const char *j_day_headings = "  S   M  Tu   W  Th   F   S";
+static const char *day_headings = "Su Mo Tu We Th Fr Sa";
+static const char *j_day_headings = " Su  Mo  Tu  We  Th  Fr  Sa";
 
 /* leap years according to the julian calendar */
 #define j_leap_year(y, m, d) \



Home | Main Index | Thread Index | Old Index