Modify

Opened 15 years ago

Closed 15 years ago

#4148 closed defect (fixed)

Error occures when wiki name contains non-ascii characters

Reported by: miau Owned by: Robert Corsaro
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When I open wiki pages whose name contain non-ascii characters, the following error occurs.

Trac detected an internal error:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

Most recent call last:
File "/usr/local/lib/python2.4/site-packages/Trac-0.11.1.ja2-py2.4.egg/trac/web/main.py", line 424, in _dispatch_request
  dispatcher.dispatch(req)
File "/usr/local/lib/python2.4/site-packages/Trac-0.11.1.ja2-py2.4.egg/trac/web/main.py", line 174, in dispatch
  chosen_handler)
File "/usr/local/lib/python2.4/site-packages/Trac-0.11.1.ja2-py2.4.egg/trac/web/main.py", line 287, in _pre_process_request
  chosen_handler = filter_.pre_process_request(req, chosen_handler)
File "build/bdist.linux-i686/egg/announcerplugin/subscribers/watchers.py", line 147, in pre_process_request
File "build/bdist.linux-i686/egg/announcerplugin/subscribers/watchers.py", line 160, in render_watcher
File "build/bdist.linux-i686/egg/announcerplugin/subscribers/watchers.py", line 71, in is_watching

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Robert Corsaro

Resolution: fixed
Status: newclosed

(In [4904]) changed str casts to unicode casts. This fixes #4148.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Robert Corsaro.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.