FS#15085 - [gtk] missing rc files in /etc/gtk

Attached to Project: Arch Linux
Opened by Alessandro Doro (adoroo) - Saturday, 13 June 2009, 10:40 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 10 January 2010, 18:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

/etc/gtk doesn't contain rc files for FR, IT and some other countries.
This cause some issue with displayed characters; see for example  FS#10084 .

I suggest to add more symlinks:
gtkrc.it -> gtkrc.iso-8859-15

* gtk 1.2.10-9
This task depends upon

Closed by  Eric Belanger (Snowman)
Sunday, 10 January 2010, 18:01 GMT
Reason for closing:  No response
Additional comments about closing:  If you come up with a solution, ask to re-open this bug.
Comment by Roman Kyrylych (Romashka) - Saturday, 13 June 2009, 12:08 GMT
Isn't this upstream problem?
Comment by Eric Belanger (Snowman) - Monday, 15 June 2009, 03:48 GMT
gtk is no longer developped so adding adding these symlinks seem reasonable especially if it will fix character problems. Do you have a list of what symlinks to add?
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 05 October 2009, 23:44 GMT
  • Field changed: Status (Assigned → Waiting on Response)
@Alessandro: any comments for the question of Eric? Thanks.
Comment by Alessandro Doro (adoroo) - Tuesday, 06 October 2009, 16:36 GMT
I think that the proposed fix is not clean at all because overrides the user locale.
What follows assumes that the current locale is xx_XX.utf8.

A gtkrc.utf8 should be created in /etc/gtk. Some testing with manedit and xmms shows that it's ignored (tried with gtkrc.utf-8 too).
$ LANG=it_IT.utf8 xmms # bad
$ LANG=it_IT.iso88591 xmms # good

Is there a way to make gtk libraries read gtkrc.utf8?
http://mandrivausers.org/index.php?/topic/15102-how-to-modifying-ui-font-of-gtk1-and-gtk2-apps/
https://bugs.launchpad.net/ubuntu/+source/gtk+1.2/+bug/71071/+activity
http://www.gentoo-wiki.info/UTF-8#XMMS
suggest that this is possible, but here it doesn't work. I need explicitely /etc/gtk/gtkrc or /etc/gtk/gtkrc.it or /etc/gtk/gtkrc.it_IT.utf8 or ~/.gtkrc when the locale is it_IT.utf8. Note that the file can be identical to, e.g., gtkrc.iso-8859-15.

Proposals:
1. /etc/gtk/gtkrc.xx links to the corresponding gtkrc.iso
or /etc/gtk/gtkrc.xx_XX.utf8 links to the corresponding gtkrc.iso or a new file¹ gtkrc.utf8
2. warn users to create a ~/gtkrc that links to the appropriate rc file in /etc/gtk
3. make sure gtk reads gtkrc.utf8 if it runs under a utf8 locale.

The last is the most desiderable.
Comment by Alessandro Doro (adoroo) - Tuesday, 06 October 2009, 16:44 GMT
I'll try some research around the third solution.
Comment by Eric Belanger (Snowman) - Saturday, 05 December 2009, 07:34 GMT
Any progress?

Loading...