GNOME Bugzilla – Bug 163030
GKeyFile carriage return style
Last modified: 2011-02-18 16:11:07 UTC
It's not clear from the documentation whether the files parsed with GKeyFile would be using the system's carriage return (\x0d\n on Windows, \n on Unix), or only Unix style carriage returns, or would be able to parse both.
Accepting both is almost certainly the right behavior and what we do in most places; don't know whether it works like that now.
2005-01-19 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_parse_data): Accept \r\n as line end. (#163030, Bastian Nocera) (g_key_file_load_from_data): Make -1 work as a size. * tests/keyfile-test.c: Some unit tests for the keyfile parser. * tests/Makefile.am (test_programs): Add keyfile-test.