Modify

Opened 14 years ago

Closed 14 years ago

#6812 closed defect (fixed)

Localization Problem

Reported by: abekkine@… Owned by: Malcolm Studd
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 (1)

milestone.py.patch (850 bytes) - added by abekkine@… 14 years ago.
Localization bug workaround fix.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by abekkine@…

Attachment: milestone.py.patch added

Localization bug workaround fix.

comment:1 Changed 14 years ago by Malcolm Studd

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Malcolm Studd.
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.