[patch] fix g_shell_quote
- From: Darin Adler <darin bentspoon com>
- To: gtk-devel-list gnome org
- Subject: [patch] fix g_shell_quote
- Date: Wed, 15 Aug 2001 17:08:54 -0700
Converting eel to the new glib, I converted eel_shell_quote to
g_shell_quote. Rather than discard the tests for eel_shell_quote, I ran
them on g_shell_quote and discovered that it doesn't work.
Index: glib/gshell.c
===================================================================
RCS file: /cvs/gnome/glib/glib/gshell.c,v
retrieving revision 1.3
diff -p -u -r1.3 gshell.c
--- glib/gshell.c 2001/03/09 21:23:33 1.3
+++ glib/gshell.c 2001/08/16 00:07:50
@@ -198,7 +198,7 @@ g_shell_quote (const gchar *unquoted_str
{
/* Replace literal ' with a close ', a \', and a open ' */
if (*p == '\'')
- g_string_append (dest, "'\''");
+ g_string_append (dest, "'\\''");
else
g_string_append_c (dest, *p);
===================================================================
May I commit?
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]