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
Unknown Object (File)
Wed, Oct 15, 7:32 PM
Unknown Object (File)
Wed, Oct 15, 12:27 AM
Unknown Object (File)
Tue, Oct 14, 3:46 PM
Unknown Object (File)
Tue, Oct 14, 3:46 PM
Unknown Object (File)
Tue, Oct 14, 6:49 AM
Unknown Object (File)
Tue, Oct 14, 2:34 AM
Unknown Object (File)
Fri, Oct 10, 3:17 PM
Unknown Object (File)
Sat, Oct 4, 2:14 AM
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 Not Applicable
Unit
Tests Not Applicable