[bug #2910] (thuban) about dialog crashes when changing locale to

Request Tracker thuban-bugs at intevation.de
Wed Jan 19 14:39:13 CET 2005


this bug's URL: http://intevation.de/rt/webrt?serial_num=2910
-------------------------------------------------------------------------

Subject: about dialog crashes when changing locale to 

Operating System: GNU/Linux, Debian testing/unstable
Thuban version: 1.0.1, cvs20050118
wxPython version: 2.4.2.4
Python version: 2.3.4
PySQLite version: 1.0
SQLite version: 2.8.15
GDAL version: 1.2.5
proj version: 4.4.9

Did you compile Thuban yourself?

Yes, with dpkg-buildpackage

Changing the locale to "C" with

LC_ALL=C
and (optionally)
LANG=C

and then trying to look at the About... window I get:

An unhandled exception occurred:
encode() argument 1 must be string, not None
(please report to http://thuban.intevation.org/bugtracker.html)

Traceback (most recent call last):
  File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 284, in invoke_command
    command.Execute(self.Context())
  File "/usr/lib/thuban/Thuban/UI/command.py", line 121, in Execute
    apply(self.function, (context,) + self.args + args, kw)
  File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 1004, in call_method
    apply(getattr(context.mainwindow, methodname), args)
  File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 479, in About
    dlg = About(self)
  File "/usr/lib/thuban/Thuban/UI/about.py", line 40, in __init__
    developers = [ 'Jonathan Coles',
  File "/usr/lib/thuban/Thuban/UI/about.py", line 172, in unicodeToLocale
    return unicodeStr.encode(getdefaultlocale()[1])
TypeError: encode() argument 1 must be string, not None


-------------------------------------------- Managed by Request Tracker




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)