Page MenuHomeFreeBSD

cal: don't print terminal control characters unless stdout is a TTY
ClosedPublic

Authored by asomers on Jan 13 2023, 8:22 PM.
Tags
None
Referenced Files
F108524741: D38045.id115105.diff
Sat, Jan 25, 9:37 PM
F108524020: D38045.id115057.diff
Sat, Jan 25, 9:28 PM
F108519700: D38045.diff
Sat, Jan 25, 8:29 PM
Unknown Object (File)
Fri, Jan 24, 5:11 PM
Unknown Object (File)
Sat, Jan 11, 9:00 AM
Unknown Object (File)
Sat, Jan 11, 7:00 AM
Unknown Object (File)
Thu, Jan 9, 7:11 AM
Unknown Object (File)
Nov 21 2024, 12:35 PM
Subscribers
None

Details

Summary

A similar change was made in svn r223931, but it was incomplete, working
only when the utility was invoked as "ncal". Fix the same issue when
invoking as "cal".

PR: 268936
Reported by: Ray Bellis <ray@bellis.me.uk>
MFC after: 2 weeks
Sponsored by: Axcient

Test Plan

manually tested with "cal | xxd"

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49098
Build 45987: arc lint + arc unit