[Commit] nickle ChangeLog,1.35,1.36 file.c,1.61,1.62

Bart Massey commit at keithp.com
Fri Apr 16 01:25:00 PDT 2004


Committed by: bart

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv21318

Modified Files:
	ChangeLog file.c 
Log Message:
	* file.c: (FilePuts):
	Handle emitting backslash in quoted string properly.



Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/nickle/ChangeLog,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- a/ChangeLog	16 Apr 2004 07:46:02 -0000	1.35
+++ b/ChangeLog	16 Apr 2004 08:24:58 -0000	1.36
@@ -1,5 +1,10 @@
 2004-04-15  Bart Massey  <bart at cs.pdx.edu>
 
+	* file.c: (FilePuts):
+	Handle emitting backslash in quoted string properly.
+	
+2004-04-15  Bart Massey  <bart at cs.pdx.edu>
+
 	* string.5c:
 	Added new string functions _dequote(), dequote(), inchars(),
 	readcsv(), and associated machinery.

Index: file.c
===================================================================
RCS file: /local/src/CVS/nickle/file.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- a/file.c	16 Apr 2004 05:26:45 -0000	1.61
+++ b/file.c	16 Apr 2004 08:24:58 -0000	1.62
@@ -1362,6 +1362,8 @@
 		}
 	    else if (c == '"')
 		FilePuts (f, "\\\"");
+	    else if (c == '\\')
+		FilePuts (f, "\\\\");
 	    else
 	    {
 		char	dest[7];




More information about the Commit mailing list