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 152175 - No defaults are read if current locale is before the C one in the schema file
No defaults are read if current locale is before the C one in the schema file
Status: RESOLVED FIXED
Product: GConf
Classification: Deprecated
Component: Markup backend
CVS HEAD
Other Linux
: Normal normal
: ---
Assigned To: GConf Maintainers
GConf Maintainers
: 133011 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-09-08 16:21 UTC by Fernando Herrera
Modified: 2005-01-21 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test for this bug (24.78 KB, text/plain)
2004-09-08 16:23 UTC, Fernando Herrera
  Details
Patch fixing this bug (1.20 KB, patch)
2004-09-08 16:24 UTC, Fernando Herrera
accepted-commit_now Details | Review

Description Fernando Herrera 2004-09-08 16:21:03 UTC
When current locale is before the C one in the schema file, defaults are not
read. This is because the new change to store defaults only in the C locale. The
Markup code stop reading the scehma file if a matching locale has been found.
Normally C locale is on the top of the file, but some intltools are creating
this file in alphabetical order.
Comment 1 Fernando Herrera 2004-09-08 16:23:08 UTC
Created attachment 31417 [details]
Test for this bug

Put this file on:
$prefix/etc/gconf/gconf.xml.defaults/schemas/desktop/gnome/url-handlers/http
and run:
LC_ALL=en_GB gconftool-2 --direct
--config-source=xml:readonly:$prefix/etc/gconf/gconf.xml.defaults -R
/desktop/gnome/url-handlers/http

You won't get the defaults values
Comment 2 Fernando Herrera 2004-09-08 16:24:25 UTC
Created attachment 31418 [details] [review]
Patch fixing this bug
Comment 3 Sebastien Bacher 2004-09-08 16:40:02 UTC
Just to confirm. We had some issues with the debian packages on fresh install
with en_GB locale

$ LC_ALL="en_GB" gconftool-2 -R /desktop/gnome/url-handlers/http
	 needs_terminal = false
	 command = (no value set)
	 enabled = (no value set)

With the patch:

$ LC_ALL="en_GB" gconftool-2 -R /desktop/gnome/url-handlers/http
	 needs_terminal = false
	 command = epiphany %s
	 enabled = true
Comment 4 Mark McLoughlin 2004-11-02 17:42:11 UTC
Fernando: patch looks sane, please commit. Much thanks :-)
Comment 5 Fernando Herrera 2004-11-02 18:30:02 UTC
Committed, thanks.
Comment 6 Bastien Nocera 2005-01-21 12:34:30 UTC
*** Bug 133011 has been marked as a duplicate of this bug. ***