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 756214 - g_settings_schema_key_get_description() returns the start of a po file if empty <description>
g_settings_schema_key_get_description() returns the start of a po file if emp...
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gsettings
2.46.x
Other Linux
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-10-08 00:28 UTC by Arnaud B.
Modified: 2016-02-08 07:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot, dconf-editor master. (102.71 KB, image/png)
2015-10-08 00:28 UTC, Arnaud B.
  Details
gsettings: Don't translate "" (883 bytes, patch)
2015-10-08 03:36 UTC, Matthias Clasen
accepted-commit_now Details | Review

Description Arnaud B. 2015-10-08 00:28:49 UTC
Created attachment 312866 [details]
Screenshot, dconf-editor master.

Looks like g_settings_schema_key_get_description() returns the start of the current-locale’s po file if there’s an empty <description> tag (but with the tag present, or it returns an empty string). In dconf-editor master, see /ca/desrt/dconf-editor/demo/string.
Comment 1 Matthias Clasen 2015-10-08 03:36:15 UTC
Created attachment 312878 [details] [review]
gsettings: Don't translate ""

The empty msgid is traditionally used to store po file metadata,
so calling gettext with an empty msgid is not the right thing
to do.
Comment 2 Dan Winship 2015-10-08 13:03:41 UTC
Comment on attachment 312878 [details] [review]
gsettings: Don't translate ""

right
Comment 3 Arnaud B. 2015-10-17 05:18:42 UTC
Mh, looks like g_settings_schema_key_get_summary() also has the problem (org.gnome.caribou)…
Comment 4 Matthias Clasen 2016-02-08 07:31:37 UTC
This was committed a while ago