[Geany] Re: bug in Geany 0.10, does not like folders with a space

Enrico Tröger enrico.troeger at xxxxx
Mon Jan 15 13:44:46 UTC 2007


On Mon, 15 Jan 2007 04:31:29 -0600, "Jeff Pohlmeyer"
<yetanothergeek at gmail.com> wrote:

Hi,

Rob, thanks for reporting.

> > Attached is a possible fix, but maybe Enrico knows some better way.
>
> I think that patch is no good, because it doesn't take into account
> all the other special characters that the shell might interpret.
Also I don't think (read: hope) that in the path of an opened file
should be any quotes.

> But maybe there is a glib function already made for this:
> g_shell_quote()
My first attempt was to just include the path into quotes like this:
cmd = g_strconcat("cd \"", path, "\"\n", NULL);
This should solve the problem at least for whitespaces in the path. But
there might be also some special characters(like German umlauts) in the
path. I will also have a look at g_shell_quote().

Regards,
Enrico

P.S.: Life of developers could be so nice if it were not possible to
use whitespace and other special characters in paths and filenames ;-).

--
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070115/68227d2a/attachment.pgp>


More information about the Users mailing list