util-linux/misc-utils
Karel Zak 07c8462fb7 cal: do not use putp(), directly use stdio functions
It seems our putp() based output is not portable as some ncurses
implementations strictly follow POSIX where putp() accepts only
terminfo capability strings and nothing else.

We already use standard stdio.h functions to output terminfo strings
(e.g.  for colors). It seems we can do the same for cal(1) to
highlight the current day.

Note that mix putp() and fputs() is bad idea due to different
buffering ways in some cases (see cal.c git log for more details).

This patch also reduces complexity of the code as we can directly
output to stdout without snprintf to string.

Addresses: https://github.com/karelzak/util-linux/pull/1167
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-10-21 10:19:26 +02:00
..
.gitignore getopt: use examples installation directory in man page 2020-02-15 15:24:01 +00:00
Makemodule.am build-sys: use _DATA to install getopt examples 2020-10-06 15:47:02 +02:00
blkid.8 Manual pages: wording fix: "another" ==> "other" 2020-05-29 14:31:47 +02:00
blkid.c docs: improve size arguments description in --help output 2020-02-05 11:01:36 +01:00
cal.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
cal.c cal: do not use putp(), directly use stdio functions 2020-10-21 10:19:26 +02:00
fincore.1 docs: (man) remove double quotes (") in .SH lines 2020-05-19 12:15:34 +02:00
fincore.c cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
findfs.8 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
findfs.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
findmnt-verify.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
findmnt.8 docs: misc-utils: change "allows to <verb>" to "allows <verb>ing" 2020-07-14 10:37:54 +02:00
findmnt.c [clang-tidy] fix wrong *cmp usage 2020-04-20 13:21:00 -07:00
findmnt.h misc-tools/findmnt: add --pseudo, --real filters 2018-05-10 11:58:30 -05:00
getopt-example.bash build-sys: use _DATA to install getopt examples 2020-10-06 15:47:02 +02:00
getopt-example.tcsh build-sys: use _DATA to install getopt examples 2020-10-06 15:47:02 +02:00
getopt.1.in getopt: use examples installation directory in man page 2020-02-15 15:24:01 +00:00
getopt.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
hardlink.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
hardlink.c hardlink: fix hardlink pcre leak 2020-10-16 11:25:11 +02:00
kill.1 doc: Fix some warnings from "test-groff" for manuals 2020-06-10 10:22:58 +02:00
kill.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
logger.1 Manual pages: logger.1: minor formatting and typo fixes 2020-07-24 14:41:49 +02:00
logger.c various: fix more lgtm scan warnings 2020-02-20 20:18:46 +00:00
look.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
look.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
lsblk-devtree.c lsblk: fix -E segfault 2019-07-15 12:28:26 +02:00
lsblk-mnt.c lsblk: rename blkdev_cxt to lsblk_device 2018-12-07 12:32:57 +01:00
lsblk-properties.c lsblk: fix SCSI_IDENT_SERIAL 2020-09-24 09:56:03 +02:00
lsblk.8 lsblk: add --width option 2020-10-12 12:19:48 +02:00
lsblk.c bash-completion: (lsblk) update columns 2020-10-12 13:19:35 +02:00
lsblk.h lsblk: add PARTTYPENAME column 2019-12-04 12:38:57 +01:00
lslocks.8 docs: (man) remove double quotes (") in .SH lines 2020-05-19 12:15:34 +02:00
lslocks.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
mcookie.1 Manual pages: order NOTES / HISTORY / BUGS / EXAMPLE consistently 2020-05-22 10:25:50 +02:00
mcookie.c docs: improve size arguments description in --help output 2020-02-05 11:01:36 +01:00
namei.1 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently 2020-05-22 10:25:49 +02:00
namei.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
rename.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
rename.c rename: fix regression for symlink with non-existing target 2020-07-07 16:19:15 -03:00
test_uuidd.c libuuid: (test) cleanup unused memory [coverity scan] 2020-07-14 11:56:15 +02:00
uuidd.8.in Subject: docs: change from nofill to fill mode 2020-07-14 10:37:47 +02:00
uuidd.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
uuidd.rc.in build: use --runstatedir instead of --localstatedir 2017-07-31 15:24:46 +02:00
uuidd.service.in uuidd: Add hardening settings to uuidd.service 2018-11-29 10:37:08 +01:00
uuidd.socket.in build: use --runstatedir instead of --localstatedir 2017-07-31 15:24:46 +02:00
uuidgen.1 Manual pages: rename EXAMPLE section to EXAMPLES 2020-05-28 14:51:54 +02:00
uuidgen.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
uuidparse.1 manpages: fix "The example command" in AVAILABILITY section 2020-07-24 09:09:43 +02:00
uuidparse.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
whereis.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
whereis.c [clang-tidy] do not return in void functions 2020-04-19 14:03:21 -07:00
wipefs.8 Manual pages: wipefs.8: Formatting fixes 2020-07-24 14:41:49 +02:00
wipefs.c wipefs: add --lock and LOCK_BLOCK_DEVICE 2020-05-27 17:00:08 +02:00