Revision: 51704
http://brlcad.svn.sourceforge.net/brlcad/?rev=51704&view=rev
Author: starseeker
Date: 2012-07-29 19:49:09 +0000 (Sun, 29 Jul 2012)
Log Message:
-----------
Escape the escapes - this fixes all the quoting unit tests.
Modified Paths:
--------------
brlcad/trunk/src/libbu/quote.c
Modified: brlcad/trunk/src/libbu/quote.c
===================================================================
--- brlcad/trunk/src/libbu/quote.c 2012-07-29 18:58:16 UTC (rev 51703)
+++ brlcad/trunk/src/libbu/quote.c 2012-07-29 19:49:09 UTC (rev 51704)
@@ -49,6 +49,9 @@
if (*str == DQUOTE) {
bu_vls_putc(vp, ESCAPE);
}
+ if (*str == ESCAPE) {
+ bu_vls_putc(vp, ESCAPE);
+ }
bu_vls_putc(vp, *str);
}
} else {
@@ -58,6 +61,9 @@
if (*str == DQUOTE) {
bu_vls_putc(vp, ESCAPE);
}
+ if (*str == ESCAPE) {
+ bu_vls_putc(vp, ESCAPE);
+ }
bu_vls_putc(vp, *str);
}
bu_vls_putc(vp, DQUOTE);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits