* gettext-tools/src/cldr-plurals.c: Include closeout.h.
(main): Arrange to invoke close_stdout at program exit.
#include "basename.h"
#include "cldr-plural-exp.h"
+#include "closeout.h"
#include "c-ctype.h"
#include <errno.h>
#include <error.h>
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);
+ /* Ensure that write errors on stdout are detected. */
+ atexit (close_stdout);
+
while ((optchar = getopt_long (argc, argv, "chV", long_options, NULL)) != EOF)
switch (optchar)
{