WG15 Defect Report Ref: 9945-2-12
Topic: patch

This is an approved interpretation of 9945-2:1993.


Last update: 1997-05-20


	Class: No change.


	Topic:			patch
	Relevant Sections:

Defect Report:
          In Section - Patchfile Format, the standard  states 
          that ``[e]ach patch shall contain  zero  or  more  lines  of 
          filename identification in the format produced  by  diff  -c 
          (see 4.17), and one or  more  sets  of  diff  output,  which 
          customarily are called ``hunks.''''  [Draft 12 of  ISO/IEC 
          9945-2:1993 (July 1992), p. 619, lines 3564-3566] 
          Since there is no restriction placed on  the  sets  of  diff 
          output, is the following a valid patch? 
               *** dummy~ Thu Nov 19 14:55:01 1992 
               --- dummy Thu Nov 19 14:55:01 1992 
               < Ababa 
               < abacus 
               > Ababa 
               > abcaus 
               > test 
          If not, and ``hunks'' are only intended to be  context  diff 
          hunks, then this section is incomplete, since  it  fails  to 
          specify the format of ``regular diff'' and ``ed'' patches. 

WG15 response for 9945-2:1993 
The utility is required to interpret the information within each hunk as
described in Section, lines 3591-3594.

Rationale for Interpretation: