Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2018 05:21:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230049] OpenBSD diff (WITHOUT_GNU_DIFF) --strip-trailing-cr is incorrect
Message-ID:  <bug-230049-227-iCo9U7qvK2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230049-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230049-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230049

--- Comment #2 from commit-hook@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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230049-227-iCo9U7qvK2>