After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 163030 - GKeyFile carriage return style
GKeyFile carriage return style
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2005-01-05 17:02 UTC by Bastien Nocera
Modified: 2011-02-18 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2005-01-05 17:02:48 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.
Comment 1 Owen Taylor 2005-01-05 18:00:56 UTC
Accepting both is almost certainly the right behavior and what we do in
most places; don't know whether it works like that now.
Comment 2 Matthias Clasen 2005-01-19 14:14:32 UTC
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.