From c4bb5be2defde1d2f99ede96b6de48684f8934e6 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 8 Nov 2006 18:31:01 +0000 Subject: 2006-11-08 Frank Ch. Eigler * staptree.cxx (print_format::components_to_string): Quote ". (c_unparser::visit_print_format): Don't use lex_cast_qstring as it overdoes \ quoting. Resemble ::visit_literal_string instead. --- staptree.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'staptree.cxx') diff --git a/staptree.cxx b/staptree.cxx index 1656f64a..f3352f24 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -341,8 +341,11 @@ print_format::components_to_string(vector const & components) for (string::const_iterator j = i->literal_string.begin(); j != i->literal_string.end(); ++j) { + // See also: c_unparser::visit_literal_string and lex_cast_qstring if (*j == '%') oss << '%'; + else if(*j == '"') + oss << '\\'; oss << *j; } } -- cgit