David Bremner <david@tethera.net> writes: > Michael J Gruber <michaeljgruber+grubix+git@gmail.com> writes: > >> At first I thought we (notmuch) might have a flushing problem or such, >> which we should prevent. But this clearly looks like a glib2 >> regression now which caused others' CI to fail, too. At least you're >> prepared in case of incoming reports now ;-) > > I am seeing related (but less obnoxious) failures with glib 2.77.1 and > 2.77.2: namely the comment at the beginning of the file is gone and the > blank lines between groups are gone. Ignoring whitespace variance is > easy enough, but the missing comment at the beginning indicates either a > glib regression or notmuch doing it wrong. > Seems like a glib regression, unless there is something forbidden about the following. Sigh, I guess I need to register for an account to report a glib bug. #include <glib.h> #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char** argv){ GKeyFile *file; size_t length; char *data, *filename; GError *error = NULL; file = g_key_file_new (); g_key_file_set_comment (file, NULL, NULL, "top comment", NULL); g_key_file_set_value (file, "section", "dummy_key", "dummy_val"); g_key_file_remove_key (file, "section", "dummy_key", NULL); g_key_file_set_comment (file,"section",NULL, "section comment",NULL); data = g_key_file_to_data (file, &length, NULL); if (data == NULL) { fprintf (stderr, "Out of memory.\n"); return 1; } puts(data); } _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org