diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl index 898fc4b85a..f733aa8643 100755 --- a/misc/translator/xgettext.pl +++ b/misc/translator/xgettext.pl @@ -380,7 +380,7 @@ if ( defined $output && $output ne '-' ) { open( $OUTPUT, '>:encoding(utf-8)', $output ) || die "$output: $!\n"; } else { print STDERR "$0: Outputting to STDOUT...\n" if $verbose_p; - open( $OUTPUT, q{>}, "&STDOUT" ); + $OUTPUT = *STDOUT; } if ( defined $files_from ) {