summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
Diffstat (limited to 'pango')
-rw-r--r--pango/querymodules.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/querymodules.c b/pango/querymodules.c
index 8ea48b7a..557ae7ac 100644
--- a/pango/querymodules.c
+++ b/pango/querymodules.c
@@ -52,7 +52,7 @@ string_needs_escape (const char *str)
if (!c)
return FALSE;
- else if (c == '\"' || g_ascii_isspace (c))
+ else if (c == '\"' || c == '\\' || g_ascii_isspace (c))
return TRUE;
}
}
@@ -76,6 +76,9 @@ escape_string (const char *str)
case '\"':
g_string_append (result, "\\\"");
break;
+ case '\\':
+ g_string_append (result, "\\\\");
+ break;
default:
g_string_append_c (result, c);
}