escape \ as \034 in TOC files
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 23 Jan 2012 17:24:34 +0000 (17:24 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 23 Jan 2012 17:24:34 +0000 (17:24 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11314 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/export_handler.cc

index 0653185e877b6a7e9a088f6002720d822094d439..c38bd7ef3eae9cf7fc550a8b72399eb9aab50e3d 100644 (file)
@@ -597,6 +597,8 @@ ExportHandler::toc_escape_string (const std::string& txt)
 
                if ((*c) == '"') {
                        out += "\\\"";
+               } else if ((*c) == '\\') {
+                       out += "\\034";
                } else if (g_unichar_isprint (*c)) {
                        out += *c;
                } else {