Menu

#45 Embedded carriage returns cause incorrect display

v1.0 (example)
closed-fixed
None
5
2018-06-06
2013-01-04
AlanM
No

If files to be compared contain any carriage returns without corresponding linefeeds, differences are incorrectly identified in the displayed output. Use tkdiff on the attached text files to see the problem trivially. The flagged lines are identical; different lines are missed.

Discussion

  • AlanM

    AlanM - 2013-01-04
     
  • AlanM

    AlanM - 2013-01-04
     
  • michael-m

    michael-m - 2018-06-06
    • status: open --> closed-fixed
    • assigned_to: michael-m
    • Group: --> v1.0 (example)
     
  • michael-m

    michael-m - 2018-06-06

    You are correct. The problem was that platform non-specific end-of-line termination rules was turning any possible form of them into a "new line". The fix was to make TkDiff more platform aware, although this may cause some small visual artifacts to show if (for example) you run TkDiff on a platform different than the files you are comparing (it will depend on the Text font used). If everything is on (and from) the same platform, you should see nothing unusual as of Version 4.3

     

Log in to post a comment.