[Bug 256606] textproc/kdiff3: missing/extra newlines when merging

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 14 18:20:23 BST 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256606

            Bug ID: 256606
           Summary: textproc/kdiff3: missing/extra newlines when merging
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: emaste at freebsd.org
             Flags: maintainer-feedback?(kde at FreeBSD.org)
          Assignee: kde at FreeBSD.org

kdiff3 1.9.2 on FreeBSD 13.0 + some minor kernel changes

Using kdiff3 for resolving git merge conflicts I noticed that output files
sometimes have extra whitespace, and are missing a newline at EOF. I
encountered this within the last month or two.

Reproduction steps - create test files:

printf 'line 1\nline 2-base\nline 3-base\nline 4\n' > base
printf 'line 1\nline 2-theirs\nline 4\n' > theirs
printf 'line 1\nline 2-mine\nline 4\n' > mine

Invoke kdiff3:

kdiff3 -o out base theirs mine

Resolve the conflict choosing 'mine', save output

Observe that the output file has a blank 3rd line, and has no \x0a at EOF. By
default I have LANG=en_CA.UTF-8 but observed also with LANG unset.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list