Modify

Opened 14 years ago

Closed 9 years ago

#6401 closed defect (wontfix)

Plugin doesn't support non-english characters

Reported by: Erik Owned by:
Priority: normal Component: CondFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I've tried to enble this plugin but it breaks my trac installation. The reason for this seems to be that some of my field-values have swedish letters in them.

Is it possible to extend the functionality of the plugin to support non-english characters in field-values and field names?

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by richard.mair@…

I faced the same problem. If a Ticket-Type has a non english character, the plugin breaks the entire TRAC-Environment.

comment:2 Changed 9 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

comment:3 Changed 9 years ago by bebugz@…

Confirmed here, all ticket types rather than ascii break trac installation with python error

  File "/usr/lib/python2.7/site-packages/TracCondFields-3.0dev-py2.7.egg/condfields/web_ui.py", line 41, in __init__
    setattr(self.__class__, '%s_fields' % t, hidden_fields)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

The problem with setattr is that Python 2.* does not allow unicode glyphs for identifier names. In Python 3.2 this will work.

As a workaround you can convert identifiers to ascii using unidecode and keep track of the original name.

comment:4 Changed 9 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

CondFieldsPlugin is deprecated. Please see notice on CondFieldsPlugin and use DynamicFieldsPlugin instead. If you have any issues creating an equivalent configuration with DynamicFieldsPlugin, please ask for help on the trac:MailingList.

Modify Ticket

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