| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
ncal: fix a reference to an out-of-scope stack buffer
PR: 214237
Submitted by: Jonathan de Boyne Pollard
Sponsored by: Dell EMC
|
|
|
|
|
|
|
|
|
| |
swprintf() and apparently wcsftime() want the their output buffer size
specified in terms of the the number of wide characters and not
sizeof(buffer).
Reported by: Coverity
CID: 1007605, 1007606
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In addition to adding `static' where possible:
- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
|
|
|
|
|
|
| |
PR: standards/165400
Submitted by: Carsten Hey
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
even if stdout is not a tty. If stdout is not a tty the data is
normally processed by other tools and no control sequences are
expected.
PR: bin/158580
MFC after: 1 week
|
|
|
|
| |
Submitted by: Alexander Best <arundel@>
|
|
|
|
|
| |
Add -3, -A and -B to the usage.
Update regression test for the new parameters.
|
|
|
|
|
|
|
|
|
| |
arguments makes sense anymore. For example, what would a combination
of -3 (show three months) and -y (show the whole year) do?
We will abort on these cases.
- Move the debug option -d to -H (from highlight), while -d is now
used for setting the day of "today" so that -y and friends can
be tested.
|
|
|
|
|
| |
7 days long.
- "-m <N> <YYYY>" now prints only the month, not the whole year.
|
|
|
|
|
|
|
|
| |
- add highlight of current date for non-terminals.
- fix -J option.
- code cleanup.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
| |
- Add -A option (months after this month).
- Add -B option (months before this month).
- Fix highlighting of today in year overview.
- Fix aligning of "foreign" characters.
MFC after: 2 weeks
|
|
|
|
| |
needed.
|
|
|
|
| |
Tested with: make universe
|
|
|
|
|
|
| |
trailing space is enough.
MFC after: 1 week
|
|
|
|
|
|
| |
Noticed by: nyan
Discussed with: matusita, takawata
MFC after: 1 week
|
|
|
|
|
| |
Suggested by: ru
Approved by: ed (mentor)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Change mr/me to so/se [1].
o Introduce a -h option to disable highlighting. [2]
o Spell STDOUT_FILENO as such and pass NULL to tgetent()
to handle the case of unset TERM. [3]
Suggested by: naddy mips.inka.de (Christian Weisgerber) [1]
Requested by: danfe, deischen [2]
Suggested by: jmallett [3]
Approved by: ed (mentor)
|
|
|
|
|
|
|
|
| |
gnu cal does. This is currently disabled for year view because of hard
coded padding in that case. This will hopefully be fixed soon.
Reviewed by: Simon 'corecode' Schubert <corecode fs.ei.tum.de>
Approved by: ed
|
|
|
|
| |
PR: 131578
|
|
|
|
|
|
|
|
|
| |
followed by 'f' or 'p', use the following or preceding month of that
number, respectively. Document this. Also includes other minor
grammatical and punctuation fixes to the manual page (capitalize
Easter, etc.).
MFC after: 1 month
|
|
|
|
|
|
|
|
|
| |
displaying a calendar for a specific month of the current year than
`cal $(date +"%Y") month'. A few minor code cleanups. Set WARNS=1.
(This code is WARNS=5 clean except for "`O' modifier used with `%B'
strftime format", which is legal in FreeBSD but GCC doesn't know about.)
MFC after: 1 week
|
|
|
|
|
|
| |
Reviewed by: -audit
Approved by: silence on -audit
MFC after: 3 weeks
|
| |
|
| |
|
|
|
|
| |
Fix locale comparison with "C", add "POSIX"
|
| |
|
|
|
|
| |
Terminate weekday string
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
even a whole month might be missing.
This caused a bug for the LN -calender, whose switch was
on Dec 12, 9999.
|
|
|
|
|
| |
Synchronize usage message with man page.
PR: bin/5488
|
| |
|
|
|
|
|
|
|
|
| |
Gregorian Reformation. E. G. in Albania December 1, 1912 doesn't exist.
2. Add some countries in the switch table (BE, FI, LN, LU)
3. Correct some entries from the new found source of calendar knowledge:
http://www.pip.dknet.dk/~c-t/calendar.html,
That is Claus Tondering's Calendar FAQ.
|
|
|
|
|
| |
Localize formatting of date of easter.
Suggested by: ache
|
|
|
|
| |
and invoked as "cal").
|
|
|