gsettingsschema: Print the string that failed to parse
authorChristian Persch <chpe@gnome.org>
Tue, 23 Sep 2014 08:46:53 +0000 (10:46 +0200)
committerChristian Persch <chpe@gnome.org>
Thu, 20 Nov 2014 09:38:18 +0000 (10:38 +0100)
When parsing a translated value fails, print the actual string that
failed to parse instead of the 'domain\004string' untranslated string.

https://bugzilla.gnome.org/show_bug.cgi?id=737150
https://bugzilla.gnome.org/show_bug.cgi?id=737160

gio/gsettingsschema.c

index a7e0838..85cad60 100644 (file)
@@ -1292,7 +1292,7 @@ g_settings_schema_key_get_translated_default (GSettingsSchemaKey *key)
   if (value == NULL)
     {
       g_warning ("Failed to parse translated string '%s' for "
-                 "key '%s' in schema '%s': %s", key->unparsed, key->name,
+                 "key '%s' in schema '%s': %s", translated, key->name,
                  g_settings_schema_get_id (key->schema), error->message);
       g_warning ("Using untranslated default instead.");
       g_error_free (error);