maintainer-feedback requested: [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
Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-kde (Team)
<kde at FreeBSD.org> for maintainer-feedback:
Bug 256606: textproc/kdiff3: missing/extra newlines when merging
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256606
--- Description ---
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.
More information about the kde-freebsd
mailing list