Modify

Opened 4 years ago

Closed 4 years ago

#6812 closed defect (fixed)

Localization Problem

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

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

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by abekkine@…

Localization bug workaround fix.

comment:1 Changed 4 years ago by mestudd

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from mestudd. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.