summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index c8e49029f25..57d5ed5f78f 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -83,11 +83,9 @@ Slice::Preprocessor::addQuotes(const string& arg)
{
//
// Add quotes around the given argument to ensure that arguments
- // with spaces will be preserved as a single argument. We also
- // escape the "\" character to ensure that we don't end up with a
- // \" at the end of the string.
+ // with spaces will be preserved as a single argument
//
- return "\"" + IceUtilInternal::escapeString(arg, "\\") + "\"";
+ return "\"" + escapeString(arg, "", IceUtilInternal::Unicode) + "\"";
}
string