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


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

.

Last update: 1997-05-20


								9945-2-12

	Class: No change.

 _____________________________________________________________________________



	Topic:			patch
	Relevant Sections:	5.22.7.1


Defect Report:
-----------------------
 
          In Section 5.22.7.1 - 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 
               18d17 
               < Ababa 
               20c19,21 
               < 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 5.22.7.3, lines 3591-3594.

Rationale for Interpretation:
-----------------------------
None.
 _____________________________________________________________________________