[Toybox] [PATCH]patch: support unified diffs with unusual timestamp formats

William Haddon william at haddonthethird.net
Wed Aug 28 17:02:45 PDT 2019


On 08/28/2019 07:21:31 PM, Rob Landley wrote:
> On 8/28/19 5:15 PM, William Haddon wrote:
> > I'm slightly confused about how the existing code is supposed to
> handle 
> > filenames with tabs followed by digits.
> 
> It doesn't, but I thought it would handle the rest of them. But it
> turns out it
> doesn't because diff -u quotes filenames in that case, so I need to
> make a
> bigger patch to dequote filenames and add test cases to the test 
> suite
> for that.
> (Hard part's figuring out which character trigger quoting, but I've
> got ls
> torture test plumbing I can repurpose for that...)
> 
> And then yes, a tab would end the line. :)
> 
> Rob

For what it's worth, some older GNU tools I have generate diffs that 
contain tab and newline characters for files with these characters in 
their names, but I can not find a patch utility that successfully 
applies them.

> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
> 





More information about the Toybox mailing list