Page MenuHomeFreeBSD

Improve --strip-trailing-cr handling
ClosedPublic

Authored by delphij on Jul 26 2018, 8:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 7 2024, 3:33 PM
Unknown Object (File)
Apr 6 2024, 11:17 PM
Unknown Object (File)
Feb 8 2024, 2:02 PM
Unknown Object (File)
Dec 20 2023, 3:02 AM
Unknown Object (File)
Dec 12 2023, 9:55 PM
Unknown Object (File)
Nov 8 2023, 10:46 AM
Unknown Object (File)
Nov 8 2023, 9:52 AM
Unknown Object (File)
Oct 27 2023, 2:27 PM
Subscribers

Details

Summary

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

Test Plan

kyua test -k /usr/tests/Kyuafile usr.bin/diff

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable