gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] SuSE 9.2


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] SuSE 9.2
Date: Tue, 8 Mar 2005 00:50:57 +0100
User-agent: Mutt/1.3.22.1i

> Here is some information that might be useful to the Gnumed coders.
> I am running Suse 9.2 which has been out for almost 6 months now.
> It ships with wxGTK 2.5.2.8 (unicode compiled) as well as python-wxGTK 2.5.2.8

Trying to set up the menu with a translation for "About" (= "Über"):
> [PANIC] (wxpython/gnumed.py:address@hidden):   File 
> "/usr/local/lib/python2.3/site-packages/Gnumed/wxpython/gmGuiMain.py", line 
> 307, in __setup_main_menu<#10-0x0A-lf>    self.menu_help.Append(ID_ABOUT, 
> _("About GnuMed"), "")<#10-0x0A-lf>

Results in a unicode error:
> [PANIC] (wxpython/gnumed.py:address@hidden):   File 
> "/usr/lib/python2.3/site-packages/wx/_core.py", line 7792, in 
> Append<#10-0x0A-lf>    return _core_.Menu_Append(*args, **kwargs)<#10-0x0A-lf>
> [PANIC] (wxpython/gnumed.py:address@hidden): UnicodeDecodeError: 'ascii' 
> codec can't decode byte 0xdc in position 0: ordinal not in 
> range(128)<#10-0x0A-lf>

Apparently, standard Python gettext() does not return valid
Unicode. We may need to tell gettext() to return unicode
strings. Time to dive into Python docs...

Hm, the GNU gettext API (not the class based one) doesn't seem
to support unicode. We may need to switch to the class based
API one day after 0.1 ...

Morale: don't use unicode-compiled wxPython for now.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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