bkchem-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: **Fwd: Re: [Bkchem-user] UTF-8 in RedHat 9


From: Beda Kosata
Subject: Re: **Fwd: Re: [Bkchem-user] UTF-8 in RedHat 9
Date: Tue, 12 Oct 2004 15:20:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040921

Hi Per,
I have tried to install RedHat 9 into a virtual machine, however it is such a pain to work with the rpm system that I refused to continue further. The interesting thing in your post is that you installed tkinter-2.2.2. Normally, there is no such package when you compile from source as tkinter comes with python (when you have tk/tcl installed). Was this a rpm? In this case I would try to remove it (and recompile python if necessary). This could be the hacked tkinter I have read about on the net. Otherwise I am completely clueless about where the problem could result from :(
Sorry

                BEDA

Per Johansson wrote:
Hi Beda,

I've modified bkchem.py but to no avail.

I've also upgraded to python-2.3.4, tcl-8.4.7, tk-8.4.7, tix-8.1.4, itcl-3.2, tkinter-2.2.2 and PyXML-0.8.3. Still, the problem persists.

The packages were installed from source and installed in the (default) /usr/local directories. For python-2.3.4 i used configure;make;make altinstall.

After I installed python-2.3.4, I wiped the bkchem-0.8.0-pre2 directory and replaced it with a fresh copy.

When I run LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/python2.3 bkchem.py, the menu items still have dotted boxes between every character.

Best Regards,

Per Johansson


Beda Kosata wrote:


--------------Forwarded by SpamMotel--------------
--------------------------------------------------
--from Beda Kosata <address@hidden>--
--reply address@hidden

Spam Motel address created on 2004-10-03 10:38:54
This Message received on Mon Oct  4 03:06:03 EDT 2004
Last Message received on 2004-10-03 11:22:24

No. 15  Messages Forwarded: 5  Messages Received: 5

***  BKchem ***

                   address@hidden
--------------------------------------------------

Hi Per,
I have had a look at the internet and I have found the following bugreport. I am not sure if it relates to your problem, but have a look at it : http://mail.python.org/pipermail/python-list/2003-November/196229.html.

As for now, I have two possible solutions - either
1/ upgrade at least Tcl/Tk to 8.4.x, the best would be to upgrade python as well (to 2.3.4), or 2/ locate the file bkchem.py (it is the one you run in the single deployment install, or it should be somewhere like /usr/lib/python2.2/site-packages/bkchem/bkchem.py if you used the setup.py script to install it). In this file lines 49 and 50 should be

    import __builtin__
    __builtin__.__dict__['_'] = lambda m: m

take them and copy them once again under it, without the starting whitespace. You should get something like this:

    import __builtin__
    __builtin__.__dict__['_'] = lambda m: m
import __builtin__
__builtin__.__dict__['_'] = lambda m: m

now save the file and try it. In this case the localization will not work (you will have only the english text, which does not matter as there is not Swedish localization :)

Unfortunately I cannot test it on a RedHat right now, but my friend has one, so once he will have time, I will make more experiments with it and write some more.

Cheers
        BEDA




Per Johansson wrote:

Hi,

I've just downloaded BKchem-0.8.0-pre2. When I start this in RedHat 9 (with python 2.2.2, tk-8.3.5 and tix 8.1.4) all the menus are garbled.

That is, instead of "File" it displays "F.i.l.e." where the "." is a dotted square. I'm not sure why. My locale is Swedish UTF-8 (LANG=sv_SE.UTF-8).

How do I make BKchem look normal?

Best Regards,

Per Johansson




_______________________________________________
Bkchem-user mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/bkchem-user




_______________________________________________
Bkchem-user mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/bkchem-user





_______________________________________________
Bkchem-user mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/bkchem-user






reply via email to

[Prev in Thread] Current Thread [Next in Thread]