[Swift-commit] cog r3967
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Tue Jun 24 23:50:03 CDT 2014
------------------------------------------------------------------------
r3967 | hategan | 2014-06-24 23:47:52 -0500 (Tue, 24 Jun 2014) | 1 line
unclevered statement
------------------------------------------------------------------------
Index: modules/provider-coaster-c-client/src/JobSubmitCommand.cpp
===================================================================
--- modules/provider-coaster-c-client/src/JobSubmitCommand.cpp (revision 3966)
+++ modules/provider-coaster-c-client/src/JobSubmitCommand.cpp (working copy)
@@ -99,14 +99,19 @@
ss.append(1, '=');
while (*value) {
char c = *value;
- // TODO: are fallthroughs deliberate?
+ // TODO: are fallthroughs deliberate? Yes, they were.
switch (c) {
case '\n':
- c = 'n';
+ ss.append(1, '\\');
+ ss.append(1, 'n');
+ break;
case '\\':
ss.append(1, '\\');
+ ss.append(1, '\\');
+ break;
default:
ss.append(1, c);
+ break;
}
value++;
n--;
More information about the Swift-commit
mailing list