Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken filenames in gtk+-2.8.19 [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Sun Jul 30, 2006 8:08 am    Post subject: Broken filenames in gtk+-2.8.19 [SOLVED] Reply with quote

I have just run "emerge -u world" and GNOME got updated amongst other things too. One of its dependancies is gtk+, which got upgraded to version 2.8.19. The problem is, that I have a non-UTF-8 locale (cs_CZ.iso8859-2) and the filenames containing accented characters are displayed with a "?" in them (in gtk+ apps). When running gqview, it suggests to set the environment variable G_BROKEN_FILENAMES to 1 - but it is already set at that and this does not help a bit. Unsetting it makes no difference. Also when I save a file (e.g. in the GIMP) when there is a space in the filename it gets translated to "%20" in the "Name:" field and I have to replace the "%20" for a space again - very frustrating.
I really do not want to switch to UTF-8. Has anyone experienced similar problems? Is there any way to make it work again? Thanks.


Last edited by selig on Wed Sep 20, 2006 7:56 am; edited 1 time in total
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2076

PostPosted: Sun Jul 30, 2006 8:36 am    Post subject: Reply with quote

Does this issue also exist in 2.8.20-r1?
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Mon Jul 31, 2006 11:18 am    Post subject: Reply with quote

The gtk+-2.8.20-r1 ebuild is not marked stable yet, but I am going to try it now anyway and post the results.
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Mon Jul 31, 2006 11:52 am    Post subject: Reply with quote

The behaviour is almost the same in gtk+-2.8.20-r1 - the only difference being that when I save a picture with the GIMP, it gives me "Unnamed" in the name field instead of the old image file name.
Back to top
View user's profile Send private message
Blurpy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 111
Location: Norway

PostPosted: Fri Aug 18, 2006 5:47 pm    Post subject: Reply with quote

No solution yet? It's just extremely annoying that all my gtk+ apps are broken because they can't use the filesystem reliably anymore.
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Sun Aug 20, 2006 1:09 pm    Post subject: Reply with quote

No, unfortunately there still is no new version that would solve the problem. I will try posting a report into Gentoo's bugzilla, since I have not found the issue mentioned in any existing bugreport.
Back to top
View user's profile Send private message
Blurpy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 111
Location: Norway

PostPosted: Mon Aug 21, 2006 5:31 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=144523 is yours, right? I added a comment there.
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Wed Aug 23, 2006 7:51 am    Post subject: Reply with quote

Yes, that bugreport is mine, I am hoping they fix it soon. While I usually fix some small annoying things in programs myself, the gtk+-2 library is beyond me. :?
Back to top
View user's profile Send private message
Blurpy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 111
Location: Norway

PostPosted: Wed Sep 13, 2006 7:00 pm    Post subject: Reply with quote

Doesn't look like anything is happening :(
Back to top
View user's profile Send private message
UncleTom
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 194
Location: Bern, Switzerland

PostPosted: Thu Sep 14, 2006 6:56 am    Post subject: Reply with quote

Have you tried to set the filename encoding in /etc/env.d/50glib2 or your own profile? You should use
Code:
G_FILENAME_ENCODING="@locale"

or directly set your character encoding (ISO-8859-2) instead of
Code:
G_FILENAME_ENCODING=UTF-8

_________________
bug, n: A son of a glitch.
Back to top
View user's profile Send private message
Blurpy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 111
Location: Norway

PostPosted: Thu Sep 14, 2006 9:09 am    Post subject: Reply with quote

Thanks a lot! Both suggestions fixed the issue, so I stayed with @locale.
Back to top
View user's profile Send private message
UncleTom
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 194
Location: Bern, Switzerland

PostPosted: Thu Sep 14, 2006 11:26 am    Post subject: Reply with quote

Cool. 8)

This probably means that the bugreport could be closed as well?
_________________
bug, n: A son of a glitch.
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Tue Sep 19, 2006 10:27 am    Post subject: Reply with quote

I would say that the "@locale" setting should be default, so modifying the ebuild to set it as such would be wise. That would work well for the vast majority.
Back to top
View user's profile Send private message
UncleTom
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 194
Location: Bern, Switzerland

PostPosted: Tue Sep 19, 2006 1:53 pm    Post subject: Reply with quote

I second that.
_________________
bug, n: A son of a glitch.
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Wed Sep 20, 2006 7:55 am    Post subject: Reply with quote

I got a good explanation of the problem: https://bugs.gentoo.org/show_bug.cgi?id=144523 So I have closed it as WONTFIX. The behavior is apparently desirable for new systems and it still can be reconfigured for people like me who cannot afford to change the whole Gentoo to UTF-8 on every computer they connect to. (I have bad experience with UTF-8 terminals connecting to non-UTF-8 machines and vice versa... they are almost unusable for anything more than those 7-bit ASCII characters).
Back to top
View user's profile Send private message
UncleTom
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 194
Location: Bern, Switzerland

PostPosted: Wed Sep 20, 2006 8:53 am    Post subject: Reply with quote

Thanks for the feedback.

Our experiences with mixing UTF-8 and non-UTF-8 machines/devices must obviously be similar and I still feel that I can avoid a lot of pain by keeping everything in the same encoding. But perhaps I'll give UTF-8 another try on one of my systems as soon as I have the time to do so.
_________________
bug, n: A son of a glitch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum