Edgewall Software

Opened 12 years ago

Closed 11 years ago

#8951 closed defect (cantfix)

LookupError: unknown encoding: A

Reported by: engineliu Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.6
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


How to Reproduce

While doing a GET operation on /timeline, Trac issued an internal error.

(please provide additional details here)

User Agent was: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10

System Information

Trac 0.11.6
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
setuptools 0.6c11
SQLite 3.5.9
pysqlite 2.4.1
Genshi 0.5.1
Subversion 1.6.6 (r40053)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\main.py", line 450, in _dispatch_request
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\timeline\web_ui.py", line 123, in process_request
    'today': format_date(today),
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\util\datefmt.py", line 140, in format_date
    return format_datetime(t, format, tzinfo=tzinfo)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\util\datefmt.py", line 132, in format_datetime
    return unicode(text, encoding, 'replace')
LookupError: unknown encoding: A

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 12 years ago

Keywords: needinfo added

Something seems to be borked with your locale settings. Could you please try the following in a Python shell:

>>> import locale, sys
>>> print locale.getpreferredencoding(), sys.getdefaultencoding()
UTF-8 ascii

comment:2 by Christian Boos, 11 years ago

Resolution: cantfix
Status: newclosed

No feedback, closing.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.