about dialog still encoding problems
Bernhard Reiter
bernhard at intevation.de
Fri Sep 23 16:53:54 CEST 2005
Current CVS head:
Debian Sarge ppc:
$ locale
LANG=de_DE at euro
LC_CTYPE="de_DE at euro"
LC_NUMERIC="de_DE at euro"
LC_TIME="de_DE at euro"
LC_COLLATE="de_DE at euro"
LC_MONETARY="de_DE at euro"
LC_MESSAGES="de_DE at euro"
LC_PAPER="de_DE at euro"
LC_NAME="de_DE at euro"
LC_ADDRESS="de_DE at euro"
LC_TELEPHONE="de_DE at euro"
LC_MEASUREMENT="de_DE at euro"
LC_IDENTIFICATION="de_DE at euro"
LC_ALL=
Starting thuban, trying to open the about dialogndled exception
occurred:
unknown encoding: de
(please report to http://thuban.intevation.org/bugtracker.html)
Traceback (most recent call last):
File
"/mobilehome/bernhard/hacking/thuban/root/thuban/Thuban/UI/mainwindow.py",
line 300, in invoke_command
command.Execute(self.Context())
File
"/mobilehome/bernhard/hacking/thuban/root/thuban/Thuban/UI/command.py",
line 121, in Execute
apply(self.function, (context,) + self.args + args, kw)
File
"/mobilehome/bernhard/hacking/thuban/root/thuban/Thuban/UI/mainwindow.py",
line 1074, in call_method
apply(getattr(context.mainwindow, methodname), args)
File
"/mobilehome/bernhard/hacking/thuban/root/thuban/Thuban/UI/mainwindow.py",
line 549, in About
dlg = About(self)
File
"/mobilehome/bernhard/hacking/thuban/root/thuban/Thuban/UI/about.py",
line 40, in __init__
developers = [ 'Jonathan Coles',
File
"/mobilehome/bernhard/hacking/thuban/root/thuban/test/../Thuban/__init__.py",
line 101, in internal_from_unicode
return unistr.encode(_internal_encoding, "replace")
LookupError: unknown encoding: de
:
The "de" comes from
python
Python 2.3.5 (#2, May 4 2005, 08:48:17)
[GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import locale
>>> locale.getdefaultlocale()[1]
'de'
as called in Thuban/UI/__init__.py
why don't we add a check in there?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050923/8e32d2d9/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)