diff options
Diffstat (limited to 'gettext-tools/src/msguniq.c')
-rw-r--r-- | gettext-tools/src/msguniq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gettext-tools/src/msguniq.c b/gettext-tools/src/msguniq.c index b3fe4f3..c12e870 100644 --- a/gettext-tools/src/msguniq.c +++ b/gettext-tools/src/msguniq.c @@ -27,6 +27,7 @@ #include <stdlib.h> #include <locale.h> +#include "closeout.h" #include "dir-list.h" #include "str-list.h" #include "error.h" @@ -112,6 +113,9 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, relocate (LOCALEDIR)); textdomain (PACKAGE); + /* Ensure that write errors on stdout are detected. */ + atexit (close_stdout); + /* Set default values for variables. */ do_help = false; do_version = false; |