GNOME Bugzilla – Bug 551059
GFIle load_contents methods chop the data off at the first \0
Last modified: 2008-09-07 01:05:28 UTC
_wrap_g_file_load_contents and _wrap_g_file_load_contents_finish use Py_BuildValue("(sks)", content, length, etag_out) to construct the result. This treats 'content' as a null-terminated string.
Created attachment 118131 [details] [review] simple fix
*** Bug 550835 has been marked as a duplicate of this bug. ***
Comment on attachment 118131 [details] [review] simple fix Looks good, please commit.
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.