Re: glib, gkeyfile question
- From: Rob Pearce <rob bdt-home demon co uk>
- To: gtk-list gnome org
- Subject: Re: glib, gkeyfile question
- Date: Thu, 15 Mar 2007 23:03:00 +0000
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]