Ticket #6812 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Localization Problem

Reported by: abekkine@gmail.com Assigned to: mestudd
Priority: normal Component: ExtendedVersionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

UnicodeEncodeError raises when a milestone containing non-ascii characters in its name, submitted with version value change.

Details:

TracInternalError:
UnicodeEncodeError: ('ascii', u'delete version for milestone Say\u0131', 32, 33, 'ordinal not in range(128)')

Most recent call last:

# File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 444, in  _dispatch_request
# File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 175, in dispatch
# File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 295, in _pre_process_request
# File "build/bdist.linux-i686/egg/extendedversion/milestone.py", line 38, in pre_process_request
# File "build/bdist.linux-i686/egg/extendedversion/milestone.py", line 71, in _delete_milestone_version

Problem arises from the print statements in milestone.py file. When these are commented out, it works properly. They may be replaced with trac logging mechanism. A patch providing a workaround fix is provided.

Attachments

milestone.py.patch (0.8 kB) - added by abekkine@gmail.com on 03/17/10 09:00:02.
Localization bug workaround fix.

Change History

03/17/10 09:00:02 changed by abekkine@gmail.com

  • attachment milestone.py.patch added.

Localization bug workaround fix.

03/18/10 13:27:51 changed by mestudd

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

(In [7782]) Fix #6812: Remove print statements left over from initial development/debugging.


Add/Change #6812 (Localization Problem)




Change Properties
Action