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 479730 - The "g_key_file_set_comment" interface prepends '#' character to the comment
The "g_key_file_set_comment" interface prepends '#' character to the comment
Product: glib
Classification: Platform
Component: gkeyfile
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
Depends on:
Reported: 2007-09-24 07:52 UTC by Areg Beketovski
Modified: 2015-06-16 22:39 UTC
See Also:
GNOME target: ---
GNOME version: ---

The test case reproducing the bug (555 bytes, text/plain)
2007-09-24 07:53 UTC, Areg Beketovski

Description Areg Beketovski 2007-09-24 07:52:43 UTC
Invocation of the interface g_key_file_set_comment with parameters "group_name = some_group, key" = NULL" sets the comment value with perepended character '#'.

The detailed bug description can be found at:
Comment 1 Areg Beketovski 2007-09-24 07:53:27 UTC
Created attachment 96102 [details]
The test case reproducing the bug
Comment 2 Matthias Clasen 2015-05-23 17:50:01 UTC
this is just a documentation issue. the docs should state clearly that get_comment retrieves a comment including the initial #'s, and set_comment should state clearly that it prepends #'s