From 3e6ee930c8896a32ff3d51e73e6d63aad1671a30 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 20 Apr 2011 20:42:05 +1200 Subject: [PATCH] Bug 5917 : Testing fixing utf8 for preferences po file Signed-off-by: Chris Cormack --- misc/translator/xgettext.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl index 002d704ace..7b00be333e 100755 --- a/misc/translator/xgettext.pl +++ b/misc/translator/xgettext.pl @@ -347,11 +347,11 @@ 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"; - binmode( OUTPUT, ":utf8" ); } else { print STDERR "$0: Outputting to STDOUT...\n" if $verbose_p; open(OUTPUT, ">&STDOUT"); } +binmode( OUTPUT, ":utf8" ); if (defined $files_from) { print STDERR "$0: Opening input file list \"$files_from\"\n" if $verbose_p; -- 2.39.5