Commit 5526045b authored by Morten Welinder's avatar Morten Welinder

More python breakage.

parent 58390be1
......@@ -14,8 +14,8 @@ Jukka:
* Speed up font handling a bit.
* Speed up dependency handling.
* Fix the python loader. (Work around mind-boggling bug in
python. Again.)
* Fix the python and python-loader modules. (Work around mind-
boggling bug in python. Again.)
* Support for translations in plugin.xml files using xml-i18n-tools
2001-08-28 Morten Welinder <>
* python.c (plugin_init_general): Avoid segfaults with buggy pythons.
2001-08-21 Zbigniew Chyla <>
* plugin.xml: Removed
......@@ -24,6 +24,8 @@
#include "Python.h"
/* Classes we define in Python code, and where we define them. */
......@@ -887,11 +889,25 @@ plugin_cleanup_general (ErrorInfo **ret_error)
*ret_error = NULL;
extern char **environ;
plugin_init_general (ErrorInfo **ret_error)
gchar *exc_string;
int i;
/* Python's convertenviron has gotten into its head that it can
write to the strings in the environment. We have little choice
but to allocate a copy of everything. */
for (i = 0; environ[i]; i++)
environ[i] = g_strdup (environ[i]);
*ret_error = NULL;
/* initialize the python interpreter */
Py_SetProgramName ("gnumeric");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment