diff options
Diffstat (limited to 'misc-utils/cal.c')
-rw-r--r-- | misc-utils/cal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c index c9efdf074..918cbab09 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -67,6 +67,7 @@ #include <errno.h> #include "c.h" +#include "closestream.h" #include "nls.h" #include "mbsalign.h" #include "strutils.h" @@ -278,6 +279,7 @@ main(int argc, char **argv) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); #if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW) || defined(HAVE_LIBTERMCAP) if ((term = getenv("TERM"))) { |