What steps will reproduce the problem?
1. There is a source tokenized inputfile contains only a '0' character without
any newline character. The detokenized_target file is the same as the source
file. It doesn't matter that there is a newline or not.
2. /globalese/m4loc/xliff/fix_markup_ws.pm script aborts and gives an error
message.
What is the expected output? What do you see instead?
Expected output is a '0' character (and a newline character):
0
Output is an error message:
Source file and detokenized target file have differing number of lines at
/globalese/m4loc/xliff/fix_markup_ws.pm line 39, <$sfh> line 1.
What version of the product are you using? On what operating system?
I am on your latest origin/master branch.
Please provide any additional information below.
I think the problem cased this part of the script:
if(my $sourceline = <$sfh>) {
and it should be replaced something like that:
my $sourceline = <$sfh>;
if(defined $sourceline) {
Thanks
Original issue reported on code.google.com by laki.las...@gmail.com on 11 Dec 2014 at 11:49
Original issue reported on code.google.com by
laki.las...@gmail.com
on 11 Dec 2014 at 11:49