LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-10-2005, 10:40 AM   #1
qs-raven
LQ Newbie
 
Registered: Aug 2005
Distribution: simplyMepis (currently)
Posts: 3

Rep: Reputation: 0
GTK1 not understanging UTF8?, LANG=pl_PL.UTF-8


Hello

I have the following problem: Applications that use GTK1 have problems with input and output of text.
Variable LANG=pl_PL.UTF-8
(which is polish in UTF-8), but I believe, that this issue concerns every system with UTF-8 (not only with polish language).
I'm using UTF-8 wherever possible (also in filesystems).
The symptoms:
1. when entering polish character in e.g. one of Gnome-Commander's edit boxes: two characters show instead of one.
2. when browsing filesystem: if filename has polish characters ( probably any non-latin character, actually ), one letter is displayed as two weird characters. Also all GUI elements with non-latin letters have the same problem.
3. When in e.g. Gnome-Commander I choose a font with iso 10646-1 encoding (which is related to Unicode, i believe): The font selection dialog informs me: "this two-byte font may not be displayed correctly" (actually it is in polish but I translated it to English). Indeed the font is not shown correctly! Instead of letters i see rectangles wherever the new font is used.

QT, KDE and GTK2 don't have any trouble (and never had) and work perfectly (both input and output). So the problem must be in GTK1 or its configuration.
The apps, with which I experience problems, are: Gnome-Commander, Gentoo (file manager), Cine Paint.

I've experimented with various GTK - related configuration files in /etc/ but with no good results.
I've also searched on the Internet but didn't find a solution to my specific problem.
My questions are:

1. does GTK1 support Unicode at all? UTF8?
2. if yes: how do i tell it that i am using Unicode?
3. if no: is there any workaround?

I'm using simplyMepis 3.3.1 ( based on Debian ).
Please help :-), TIA

PS I'm a novice Linux user.

Last edited by qs-raven; 08-10-2005 at 11:08 AM.
 
Old 08-15-2005, 08:01 AM   #2
qs-raven
LQ Newbie
 
Registered: Aug 2005
Distribution: simplyMepis (currently)
Posts: 3

Original Poster
Rep: Reputation: 0
Hey. Noone is answering...
I've recently thought: Maybe the problem isn't in the GTK1 itself but in X Windows' input methods and text rendering? Maybe Xs don't know about Unicode in these applications?
 
Old 08-15-2005, 08:47 AM   #3
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
I do not beleive that GTK1 is unicode aware, though the 2.x series is.
 
Old 08-15-2005, 08:54 AM   #4
qs-raven
LQ Newbie
 
Registered: Aug 2005
Distribution: simplyMepis (currently)
Posts: 3

Original Poster
Rep: Reputation: 0
So is there a way to force encoding upon an application? I would like to force ISO8859-2 in some UTF-incompatible applications. Then at least I would have proper handling of polish letters in them ( i think :-) ).

PS Yes. I know that GTK2.x supports Unicode :-) And it apparently does it very well :-)
What about other toolkits? ( Xaw, Motif, ... )

Last edited by qs-raven; 08-15-2005 at 09:01 AM.
 
Old 08-15-2005, 02:37 PM   #5
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
I think motif support unicode, not sure about xaw. I do not beleive there is anyway to force unicode on gtk1 unless you want to get very deep into the source code. What exactly rae you doing that you have the option of using all these different toolkits?
 
Old 12-03-2006, 08:31 AM   #6
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 657

Rep: Reputation: 66
Smile

Heh, a good question was a year ago

dillo uses gtk1 yet
dillo itself supports UTF8 well, but gtk1 does not
I investigated it alittle, there is a trick to force some codepage typing an appropriate font into /etc/gtk/gtkrc.utf-8 (i.e. iso8859 fonts or smth like it)
It is good, but I'd like to use unicode

does anyone found solution?

Thanks in advance,

Igor
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know how a file is encoded? UTF-8, UTF-16, etc.. ?? brynjarh Linux - General 1 12-03-2004 11:11 AM
[Enter] in text documents diffrent on Windows and Linux? UTF-8/UTF-16 problem or? brynjarh Linux - General 1 11-24-2004 05:20 AM
Gtk1 to Gtk2 jev-bird Linux - Software 0 08-12-2004 02:23 AM
X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' chrsitophermann Debian 11 07-17-2004 02:04 PM
Fonts in gtk1.2 IvanJ Debian 7 06-14-2004 06:41 AM


All times are GMT -5. The time now is 04:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration