Run calendar without a calendar file.

calendar: no calendar file: ``calendar'' or ``~/.calendar/calendar''

I think these fake double quotes are really ugly. It's been a long time since
the typical font rendered them symmetrically.

Also, fix another instance in the man page. There's more to be found in the
calendar files themselves, but I'll leave that for someone who cares more.


Index: calendar.1
===================================================================
RCS file: /cvs/src/usr.bin/calendar/calendar.1,v
retrieving revision 1.43
diff -u -p -r1.43 calendar.1
--- calendar.1  3 Jun 2018 06:50:35 -0000       1.43
+++ calendar.1  29 Jan 2019 20:52:08 -0000
@@ -119,7 +119,9 @@ They may be entered in almost any format
 strings.
 If proper locale is set, national months and weekdays
 names can be used.
-A single asterisk (`*') matches every month.
+A single asterisk
+.Pq Sq *
+matches every month.
 A day without a month matches that day of every week.
 A month without a day matches the first of that month.
 Two numbers default to the month followed by the day.
Index: io.c
===================================================================
RCS file: /cvs/src/usr.bin/calendar/io.c,v
retrieving revision 1.47
diff -u -p -r1.47 io.c
--- io.c        25 Sep 2017 19:13:56 -0000      1.47
+++ io.c        29 Jan 2019 20:49:38 -0000
@@ -326,7 +326,7 @@ opencal(void)
                        if (!(chdir(home) == 0 &&
                            chdir(calendarHome) == 0 &&
                            (fdin = open(calendarFile, O_RDONLY)) != -1))
-                               errx(1, "no calendar file: ``%s'' or 
``~/%s/%s''",
+                               errx(1, "no calendar file: \"%s\" or 
\"~/%s/%s\"",
                                    calendarFile, calendarHome, calendarFile);
                }
        }

Reply via email to