Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default Line endings (Windows to Windows File Compare)

    Copying a difference section to correct a line ending difference fails in a Windows to Windows text compare session. See screencast.

    I consider this to be a defect. If this functionality is intentional, please provide an option or tweak to allow line ending differences to be copied from one side to the other... or to correct a line ending based on the folder type (Windows vs Linux) when a line is copied from one side to the other.
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  2. #2
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    Even saving and reloading the files does not correct the line ending!
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  3. #3
    Join Date
    Oct 2007
    Posts
    437

    Default

    This is intentional. To change line endings, select File -> Save File As..., change the Line ending style and click Save.
    Erik Scooter Software

  4. #4
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    As I said, if this is intentional, please add an option to allow a copy of line endings. If a user goes through the motions of copying a diff section from one side to the other, and nothing changes, the save icon in the toolbar should not be enabled as if something has changed. It is misleading to the user!
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  5. #5
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    In other words:

    "Save As" is a useful way to set all line endings all at once. But it does not negate the need for a way to copy a diff section as one is working through a text compare session.
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  6. #6
    Join Date
    Oct 2007
    Posts
    437

    Default

    Quote Originally Posted by Michael Bulgrien View Post
    If a user goes through the motions of copying a diff section from one side to the other, and nothing changes, the save icon in the toolbar should not be enabled as if something has changed. It is misleading to the user!
    If you copy a matching line to the other side, it will still be an edit even though nothing has changed. The behavior that is in place now prevents users from creating files with mixed line endings. Use the method I described to fix line endings. If for some odd reason you don't want to fix all endings, I'd suggest using a hex editor.
    Erik Scooter Software

  7. #7
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    2,505

    Default

    FWIW, I agree with Michael on this. There's a "Compare Line Endings" setting; if it's set the user probably wants to copy line endings.
    Zoë P Scooter Software

  8. #8
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    Quote Originally Posted by Craig View Post
    FWIW, I agree with Michael on this. There's a "Compare Line Endings" setting; if it's set the user probably wants to copy line endings.
    Thanks Craig...

    I do have Compare Line Endings enabled. That is why it showed up as a difference section.

    Here is another reason why I would like the copy to work. I have a large file with one bad line ending. When I tried the "Save As..." method, I got an error. See screenshot. Had I been able to correct the problem with a simple copy of the difference section, then I would not have had to initiate a Save As operation on a huge file and then try to figure out why it failed.
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  9. #9
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    Then, to make things worse, I changed the path on the right-hand side, and got an "Error Opening File" on the side on which I had attempted the "Save As..."! See screenshot.
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  10. #10
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    And finally, a "Compare Parent Folders in New View" shows that the file is GONE! This inability to copy line ending changes in a difference section has just turned into a DATA LOSS issue! See screenshot.
    BC v4.0.7 build 19761
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •