summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--gio/gfile.override4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b02f1e..2405dd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-07 Jonathan Matthew <jonathan@d14n.org>
+
+ Bug 551059 – GFile load_contents methods chop data at first \0
+
+ * gio/gfile.override:
+ Use 's#' (length specified) rather than 's' when constructing
+ result values in load_contents and load_contents_finish.
+
2008-09-03 Johan Dahlin <johan@gnome.org>
* configure.ac:
diff --git a/gio/gfile.override b/gio/gfile.override
index 3a6f129..fb01203 100644
--- a/gio/gfile.override
+++ b/gio/gfile.override
@@ -196,7 +196,7 @@ _wrap_g_file_load_contents(PyGObject *self,
return NULL;
if (ret)
- return Py_BuildValue("(sks)", contents, lenght, etag_out);
+ return Py_BuildValue("(s#ks)", contents, length, length, etag_out);
else {
Py_INCREF(Py_None);
return Py_None;
@@ -270,7 +270,7 @@ _wrap_g_file_load_contents_finish(PyGObject *self,
return NULL;
if (ret)
- return Py_BuildValue("(sks)", contents, lenght, etag_out);
+ return Py_BuildValue("(s#ks)", contents, length, length, etag_out);
else {
Py_INCREF(Py_None);
return Py_None;