Edgewall Software

Ticket #2963 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

UnicodeEncodeError

Reported by: afort@… Owned by: cboos
Priority: high Milestone: 0.10
Component: version control/changeset view Version: devel
Severity: normal Keywords: unicode UnicodeEncodeError
Cc: m@…

Description

I'm using r3085.

In Changeset view. It seems non ascii log message causes it.

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 299, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 175, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.py", line 200, in process_request
    req.check_modified(chgset.date, [
  File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 268, in check_modified
    m.update(str(elt))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

Attachments

Change History

Changed 3 years ago by anonymous

  • status changed from new to closed
  • resolution set to duplicate
  • milestone 0.10 deleted

Duplicate of #2905.

Changed 3 years ago by cboos

  • status changed from closed to reopened
  • resolution duplicate deleted
  • milestone set to 0.10

Well, in the same category as #2905 probably, but not really a duplicate. Here, it's the m.update(str(elt)) in check_modified in trunk/trac/web/api.py that we have to fix...

Changed 3 years ago by Markus Tacker <m@…>

  • cc m@… added

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • priority changed from normal to high
  • status changed from reopened to new

I think I'm about to fix most of the unicode issues related to SVN... Stay tuned.

Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to fixed

This particular issue should be fixed by r3091.

Add/Change #2963 (UnicodeEncodeError)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.