Re: glib, gkeyfile question



On Wednesday 14 March 2007 23:29, Bobby Jack wrote:
> In gkeyfile.c, g_key_file_to_data() unconditionally
> appends a newline between groups (the comment is
> simply "separate groups by at least an empty line").
> The resulting string is, therefore, different from the
> original contents of the file, by 1 newline character
> per group. If one writes back the contents of this
> string to the original file, that file then grows.
>
<snip>
>
> If anyone agrees, I have a patch to remove the extra
> newlines, and to test that g_key_file_to_data leaves
> that data unchanged. If so, I'll reopen the bug and
> add all this.
>
I agree!

I used a key file in my current Gtkmm application and I need to re-write it on 
exit "most" times, so the constant expansion annoys me somewhat.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]