Mercurial > pidgin
diff libpurple/plugins/perl/perl.c @ 27406:cd390b71b9ff
This seems to work better on Windows, what with the spaces in the path and the
backslashes.
| author | Etan Reisner <pidgin@unreliablesource.net> |
|---|---|
| date | Tue, 07 Jul 2009 15:42:04 +0000 |
| parents | 77177e6000e4 |
| children | c5e0b85c3145 |
line wrap: on
line diff
--- a/libpurple/plugins/perl/perl.c Tue Jul 07 07:27:17 2009 +0000 +++ b/libpurple/plugins/perl/perl.c Tue Jul 07 15:42:04 2009 +0000 @@ -146,8 +146,8 @@ const gchar *search_path = search_paths->data; search_paths = g_list_next(search_paths); - uselib = g_strdup_printf("unshift @INC, \"%s%cperl\";", - search_path, G_DIR_SEPARATOR); + uselib = g_strdup_printf("unshift @INC, q(%s%sperl);", + search_path, G_DIR_SEPARATOR_S); eval_pv(uselib, TRUE); g_free(uselib); }
