Open mstsirkin opened 2 years ago
In order to be able to diagnose, an MWE (old and new file) would be needed. How is the output? If this looks fine, you can ignore the error message. This error message points to a problem with the encoding - latexdiff might assume a different encoding than is used for the text. Have a look at the --encoding option.
adding --encoding=utf8 did not help.
the attached zip file has old, new and the command line to run latexdiff.
with respect to the output, it appears fine superficially but the file is huge, I could miss some issues. I wish specific line numbers in the input were listed, then I could check with more confidence.
One interesting point is that perl version of latexdiff does not have the issue (it's much slower on such a huge file that is why we are using latexdiff-fast).
worked some more to cut down the size: dosmall.zip
I can confirm that the output from latexdiff-fast (with the warning) and latexdiff (without the warning) are exactly the same.
okay the following does seem to help to shut down the warning:
($fha,$fna)=tempfile("DiffA-XXXX") or die "_longestCommonSubsequence: Cannot open tempfile for sequence A";
($fhb,$fnb)=tempfile("DiffB-XXXX") or die "_longestCommonSubsequence: Cannot open tempfile for sequence B";
+ binmode($fha, ":utf8"); + binmode($fhb, ":utf8");
I have no idea whether this makes sense in this context.
Thanks for the digging. I guess I can include the binmode commands (though might need a bit of extra effort to make this work in case of other encodings). In any case good to hear the output is fine in any case.
The following is printed when using latexdiff-fast.
Wide character in print at ./latexdiff-fast line 495. Wide character in print at ./latexdiff-fast line 495. Wide character in print at ./latexdiff-fast line 503. Wide character in print at ./latexdiff-fast line 503. Wide character in print at ./latexdiff-fast line 503. Wide character in print at ./latexdiff-fast line 503.
reproduced with commit 4f17f7b188fdbd8f6477aaea4118d0416babf370 (HEAD -> master, origin/master, origin/HEAD)