[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bkchem-user] UTF-8 in RedHat 9
From: |
Beda Kosata |
Subject: |
Re: [Bkchem-user] UTF-8 in RedHat 9 |
Date: |
Mon, 04 Oct 2004 08:59:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040921 |
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