[Bug 230049] OpenBSD diff (WITHOUT_GNU_DIFF) --strip-trailing-cr is incorrect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 27 05:21:51 UTC 2018


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

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: delphij
Date: Fri Jul 27 05:21:20 UTC 2018
New revision: 336754
URL: https://svnweb.freebsd.org/changeset/base/336754

Log:
  Improve --strip-trailing-cr handling:

   - Advance ctold for f1 and ctnew for f2
   - ungetc() if the character is unexpected
   - Don't break early when we hit the combination on one side

  PR:           230049
  Reported by:  maskray <emacsray gmail com>
  Reviewed by:  bapt, maskray
  MFC after:    2 weeks
  Differential Revision:        https://reviews.freebsd.org/D16451

Changes:
  head/usr.bin/diff/diffreg.c
  head/usr.bin/diff/tests/diff_test.sh

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


More information about the freebsd-bugs mailing list