Try forcing ed to produce LF output files rather than CRLF ones.
This commit is contained in:
		
							parent
							
								
									b727599882
								
							
						
					
					
						commit
						020c84db3d
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		|  | @ -52,7 +52,6 @@ for _, f in ipairs(filenamesof(xh_files)) do | |||
| 		outleaves = { name..".h" }, | ||||
| 		commands = { | ||||
| 			"%{ins[1]} < %{ins[2]} > %{outs}", | ||||
| 			"cat %{outs}", | ||||
| 		} | ||||
| 	} | ||||
| end | ||||
|  |  | |||
|  | @ -981,7 +981,7 @@ char *fname; | |||
|   nonascii = nullchar = truncated = 0; | ||||
| 
 | ||||
|   if (diag) printf("\"%s\" ", fname); | ||||
|   if ((fp = fopen(fname, "r")) == NULL) { | ||||
|   if ((fp = fopen(fname, "rb")) == NULL) { | ||||
| 	printf("file open err\n"); | ||||
| 	return(ERR); | ||||
|   } | ||||
|  | @ -1028,7 +1028,7 @@ int apflg; | |||
| 
 | ||||
|   lines = bytes = 0; | ||||
|   if (diag) printf("\"%s\" ", fname); | ||||
|   if ((fp = fopen(fname, (apflg ? "a" : "w"))) == NULL) { | ||||
|   if ((fp = fopen(fname, (apflg ? "ab" : "wb"))) == NULL) { | ||||
| 	printf("file open error\n"); | ||||
| 	return(ERR); | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue