Description: Fixes needed for python3 build
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2016-08-09
Forwarded: no


Index: libgetdata-0.9.3/bindings/python/pydirfile.c
===================================================================
--- libgetdata-0.9.3.orig/bindings/python/pydirfile.c
+++ libgetdata-0.9.3/bindings/python/pydirfile.c
@@ -270,7 +270,7 @@ static int gdpy_dirfile_init(struct gdpy
   self->callback_data = pycallback_data;
   self->callback_exception = 0;
 
-  dirfilename = gdpy_path_from_pyobj(name, self->char_enc);
+  dirfilename = gdpy_path_from_pyobj(name, self->char_enc, 0); // 0=no dup. CHECK
 
   if (dirfilename == NULL) {
     dreturn("%i", -1);
Index: libgetdata-0.9.3/bindings/python/gdpy_intern.h
===================================================================
--- libgetdata-0.9.3.orig/bindings/python/gdpy_intern.h
+++ libgetdata-0.9.3/bindings/python/gdpy_intern.h
@@ -184,7 +184,7 @@ union gdpy_quadruple_value {
 
 /* Handle filesystem encoding */
 #if PY_MAJOR_VERSION < 3
-#define gdpy_path_from_pyobj(o,c) gdpy_string_from_pyobj(o,c,NULL)
+#define gdpy_path_from_pyobj(o,c,d) gdpy_string_from_pyobj(o,c,NULL)
 #define gdpyobj_from_path PyString_FromString
 #else
 extern char *gdpy_path_from_pyobj_(PyObject*, int);
Index: libgetdata-0.9.3/bindings/python/pyentry.c
===================================================================
--- libgetdata-0.9.3.orig/bindings/python/pyentry.c
+++ libgetdata-0.9.3/bindings/python/pyentry.c
@@ -296,7 +296,7 @@ static void gdpy_set_entry_from_tuple(gd
       }
 
       E->EN(linterp,table) = gdpy_path_from_pyobj(PyTuple_GetItem(tuple, 1),
-          char_enc);
+						  char_enc, 0 ); // CHECK: no dup?
 
       if (PyErr_Occurred()) {
         dreturnvoid();
@@ -1549,7 +1549,7 @@ static int gdpy_entry_settable(struct gd
     return -1;
   }
 
-  s = gdpy_path_from_pyobj(value, self->char_enc);
+  s = gdpy_path_from_pyobj(value, self->char_enc, 0 ); // 0 = no strdup. CHECK
 
   if (PyErr_Occurred()) {
     dreturn("%i", -1);
