Public bug reported:

Copy-paste from upstream bug:
-*-*-*-*-*-
When parsing gtkrc files, 'shade(0.5, "#color")' is not parsed in a locale
neutral way. In locales where a ',' is used to separate floating point numbers
instead of '.', parsing just fails on shade() directives. Attached is a minimal
repro case, which produces the following output depending on the locale: 

---
$ gcc gtk_gdk_parsing.c `pkg-config --cflags --libs gtk+-2.0`
$ LC_NUMERIC=C ./a.out 
Parsed color: #101010101010
$ LC_NUMERIC=ru_RU.utf8 ./a.out 
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve
property `GtkWidget::link-color' of type `GdkColor' from rc file value
"((GString*) 0x54c620)" of type `GString'

(a.out:17856): Gdk-CRITICAL **: gdk_color_to_string: assertion `color != NULL'
failed
Parsed color: (null)
-*-*-*-*-*-

This causes Chromium to not displaying the theme-specific tabs decoration on 
Ubuntu and Xubuntu.
2 patches are available in upstream report.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libgtk2.0-0 2.24.4-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Thu Apr 28 20:03:49 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
ProcEnviron:
 LANGUAGE=ru_RU:en
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: gtk+2.0
UpgradeStatus: Upgraded to natty on 2011-04-11 (17 days ago)

** Affects: gtk
     Importance: Medium
         Status: Fix Released

** Affects: gtk+2.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 natty patch

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gtk+2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/772492

Title:
  [patch] gtkrc does not handle "shade()" in a locale safe manor

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to