Source-Changes-HG archive

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

[src/netbsd-9]: src/usr.bin/cal Pull up following revision(s) (requested by k...



details:   https://anonhg.NetBSD.org/src/rev/10cc49a9825a
branches:  netbsd-9
changeset: 935356:10cc49a9825a
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 30 18:41:07 2020 +0000

description:
Pull up following revision(s) (requested by kim in ticket #977):

        usr.bin/cal/cal.c: revision 1.30

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 5a0f0442fc21 -r 10cc49a9825a usr.bin/cal/cal.c
--- a/usr.bin/cal/cal.c Tue Jun 30 18:39:37 2020 +0000
+++ b/usr.bin/cal/cal.c Tue Jun 30 18:41:07 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.29.18.1 2020/06/30 18:41:07 martin 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.29.18.1 2020/06/30 18:41:07 martin 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