Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34279 - Bad charset of GTK1 apps in GNOME 2.4
Summary: Bad charset of GTK1 apps in GNOME 2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-24 12:32 UTC by Stanislav Brabec
Modified: 2003-12-07 07:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2003-11-24 12:32:52 UTC
Starting any GTK1/GNOME1 application inside GNOME 2.4 session, application uses
bad fonts. It's because GTK1 is configured with --sysconfdir=/etc/X11, but GTK2
and GNOME is configured with --sysconfdir=/etc. GNOME 2.4 sets GTK_RC_FILES to
sysconfdir/gtk/gtkrc. This is the reason why GTK1 is unable to find its gtkrc files.

Generally it is bad idea to configure any of GTK/GNOME 1/2 package differently
as the rest. GNOME is not prepared to this style of work.

Reproducible: Always
Steps to Reproduce:
1. export LANG=cs_CZ
2. start any GTK1 app
3. charset is ISO-8859-1 instead of ISO-8859-2

Actual Results:  
ISO-8859-1 fonts

Expected Results:  
ISO-8859-2 fonts

Fixes (alternatives):

1) Configure sysconfdir for GTK1 the same as the rest of GTK/GNOME system
(probably most clean solution).

2) Make a symlink /etc/X11/gtk -> /etc/gtk (good work around).

3) Hack gnome-session to set GTK_RC_FILES in non-standard way (another
solution). Not tested, whether it works in GNOME 1.4.
Comment 1 foser (RETIRED) gentoo-dev 2003-11-25 07:03:24 UTC
1) sounds reasonable, although i would just fix the current ebuild -> fix would propagate on new systems. Since noone ever brought this up, i don't think it has ever been a big problem.
2) nah as you say, it's a workaround
3) Can't we just override this var somewhere ? I guess the 1.4 session is also flawed, because it uses /etc as well i think.
Comment 2 foser (RETIRED) gentoo-dev 2003-12-07 07:05:17 UTC
ok, since no comments i fixed this using option 1 in the current ebuild.