Lines 255-261
EOF
Link Here
|
255 |
############################################################################### |
255 |
############################################################################### |
256 |
|
256 |
|
257 |
sub convert_translation_file { |
257 |
sub convert_translation_file { |
258 |
open(my $INPUT, '<', $convert_from) || die "$convert_from: $!\n"; |
258 |
open(my $INPUT, '<:encoding(utf-8)', $convert_from) || die "$convert_from: $!\n"; |
259 |
VerboseWarnings::set_input_file_name $convert_from; |
259 |
VerboseWarnings::set_input_file_name $convert_from; |
260 |
while (<$INPUT>) { |
260 |
while (<$INPUT>) { |
261 |
chomp; |
261 |
chomp; |
Lines 367-373
usage_error('You cannot specify both --convert-from and --files-from')
Link Here
|
367 |
|
367 |
|
368 |
if (defined $output && $output ne '-') { |
368 |
if (defined $output && $output ne '-') { |
369 |
print STDERR "$0: Opening output file \"$output\"\n" if $verbose_p; |
369 |
print STDERR "$0: Opening output file \"$output\"\n" if $verbose_p; |
370 |
open($OUTPUT, '>:encoding(utf-8)', $output) || die "$output: $!\n"; |
370 |
open($OUTPUT, '>:encoding(utf-8)', $output) || die "$output: $!\n"; |
371 |
} else { |
371 |
} else { |
372 |
print STDERR "$0: Outputting to STDOUT...\n" if $verbose_p; |
372 |
print STDERR "$0: Outputting to STDOUT...\n" if $verbose_p; |
373 |
open($OUTPUT, ">&STDOUT"); |
373 |
open($OUTPUT, ">&STDOUT"); |
Lines 375-381
if (defined $output && $output ne '-') {
Link Here
|
375 |
|
375 |
|
376 |
if (defined $files_from) { |
376 |
if (defined $files_from) { |
377 |
print STDERR "$0: Opening input file list \"$files_from\"\n" if $verbose_p; |
377 |
print STDERR "$0: Opening input file list \"$files_from\"\n" if $verbose_p; |
378 |
open(my $INPUT, '<', $files_from) || die "$files_from: $!\n"; |
378 |
open(my $INPUT, '<:encoding(utf-8)', $files_from) || die "$files_from: $!\n"; |
379 |
while (<$INPUT>) { |
379 |
while (<$INPUT>) { |
380 |
chomp; |
380 |
chomp; |
381 |
my $input = /^\//? $_: "$directory/$_"; |
381 |
my $input = /^\//? $_: "$directory/$_"; |
382 |
- |
|
|