Revision: 1198
http://svn.sourceforge.net/geany/?rev=1198&view=rev
Author: eht16
Date: 2007-01-16 07:57:00 -0800 (Tue, 16 Jan 2007)
Log Message:
-----------
Use g_shell_quote to avoid problems with special characters in the path of a filename.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/vte.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-16 15:24:01 UTC (rev 1197)
+++ trunk/ChangeLog 2007-01-16 15:57:00 UTC (rev 1198)
@@ -1,3 +1,9 @@
+2007-01-16 Enrico Tröger <enrico.troeger(a)uvena.de>
+
+ * src/vte.c: Use g_shell_quote to avoid problems with special
+ characters in the path of a filename.
+
+
2007-01-16 Nick Treleaven <nick.treleaven(a)btinternet.com>
* tagmanager/c.c:
Modified: trunk/src/vte.c
===================================================================
--- trunk/src/vte.c 2007-01-16 15:24:01 UTC (rev 1197)
+++ trunk/src/vte.c 2007-01-16 15:57:00 UTC (rev 1198)
@@ -441,8 +441,11 @@
vte_get_working_directory(); // refresh vte_info.dir
if (! utils_str_equal(path, vte_info.dir))
{
- gchar *cmd = g_strconcat("cd \"", path, "\"\n", NULL);
+ // use g_shell_quote to avoid problems with spaces, '!' or something else in path
+ gchar *quoted_path = g_shell_quote(path);
+ gchar *cmd = g_strconcat("cd ", quoted_path, "\n", NULL);
vte_send_cmd(cmd);
+ g_free(quoted_path);
g_free(cmd);
}
g_free(path);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1196
http://svn.sourceforge.net/geany/?rev=1196&view=rev
Author: ntrel
Date: 2007-01-16 07:22:24 -0800 (Tue, 16 Jan 2007)
Log Message:
-----------
Fix include project.h
Modified Paths:
--------------
trunk/src/main.c
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2007-01-16 13:18:37 UTC (rev 1195)
+++ trunk/src/main.c 2007-01-16 15:22:24 UTC (rev 1196)
@@ -54,6 +54,7 @@
#include "build.h"
#include "highlighting.h"
#include "symbols.h"
+#include "project.h"
#ifdef HAVE_SOCKET
# include "socket.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1193
http://svn.sourceforge.net/geany/?rev=1193&view=rev
Author: eht16
Date: 2007-01-15 08:13:36 -0800 (Mon, 15 Jan 2007)
Log Message:
-----------
When using Save As the returned filename needs to be converted into UTF-8.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-15 15:08:10 UTC (rev 1192)
+++ trunk/ChangeLog 2007-01-15 16:13:36 UTC (rev 1193)
@@ -2,6 +2,8 @@
* src/vte.c:
Fixed changing directories when the path contains whitespace.
+ * src/callbacks.c: When using Save As the returned filename needs to be
+ converted into UTF-8.
2007-01-15 Nick Treleaven <nick.treleaven(a)btinternet.com>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2007-01-15 15:08:10 UTC (rev 1192)
+++ trunk/src/callbacks.c 2007-01-15 16:13:36 UTC (rev 1193)
@@ -885,7 +885,8 @@
doc_list[idx].tm_file = NULL;
g_free(doc_list[idx].file_name);
}
- doc_list[idx].file_name = new_filename;
+ doc_list[idx].file_name = utils_get_utf8_from_locale(new_filename);
+ g_free(new_filename);
utils_replace_filename(idx);
document_save_file(idx, TRUE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.