Modify

Opened 7 years ago

Closed 20 months ago

#6401 closed defect (wontfix)

Plugin doesn't support non-english characters

Reported by: sir_ken 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 2 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 21 months ago by rjollos

  • Owner coderanger deleted

comment:3 Changed 20 months 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 20 months ago by rjollos

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

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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
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.