diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 5 | ||||
-rw-r--r-- | pango/querymodules.c | 5 |
5 files changed, 24 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2004-09-15 Tor Lillqvist <tml@iki.fi> + + * pango/querymodules.c (string_needs_escape, escape_string): + Escape also backslashes. (#152607, Kazuki Iwamoto) + Mon Sep 13 17:38:58 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.6.0 === diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index a70810a2..6eff0f05 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,8 @@ +2004-09-15 Tor Lillqvist <tml@iki.fi> + + * pango/querymodules.c (string_needs_escape, escape_string): + Escape also backslashes. (#152607, Kazuki Iwamoto) + Mon Sep 13 17:38:58 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.6.0 === diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index a70810a2..6eff0f05 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,8 @@ +2004-09-15 Tor Lillqvist <tml@iki.fi> + + * pango/querymodules.c (string_needs_escape, escape_string): + Escape also backslashes. (#152607, Kazuki Iwamoto) + Mon Sep 13 17:38:58 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.6.0 === diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index a70810a2..6eff0f05 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,8 @@ +2004-09-15 Tor Lillqvist <tml@iki.fi> + + * pango/querymodules.c (string_needs_escape, escape_string): + Escape also backslashes. (#152607, Kazuki Iwamoto) + Mon Sep 13 17:38:58 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.6.0 === 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); } |