Bug 5917 : Fix for xgettext.pl

This commit is contained in:
Chris Cormack 2011-04-12 20:16:57 +12:00
parent 3fdf627c19
commit 8df93d61bc

View file

@ -341,7 +341,8 @@ usage_error('You cannot specify both --convert-from and --files-from')
if (defined $output && $output ne '-') {
print STDERR "$0: Opening output file \"$output\"\n" if $verbose_p;
open(OUTPUT, ">$output") || die "$output: $!\n";
open(OUTPUT, ">$output") || die "$output: $!\n";
binmode( OUTPUT, ":utf8" );
} else {
print STDERR "$0: Outputting to STDOUT...\n" if $verbose_p;
open(OUTPUT, ">&STDOUT");