Modify

Opened 5 years ago

Closed 4 years ago

#4377 closed defect (duplicate)

Trachours won't function with non-ascii chars in database fields.

Reported by: k0s Owned by: k0s
Priority: normal Component: TracHoursPlugin
Severity: normal Keywords:
Cc: sergey.chervony@…, gunseg@…, lars+openplans.org@…, freakm4ster@… Trac Release: 0.11

Description

The plugin terminates and trac shows an internal error when we have tickets with german umlauts in relevant fields:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128)

Here is some general information on this issue from the edgewall wiki.

This is a moved ticket. The original ticket and all comments can be found at http://trac.openplans.org/hours/ticket/12

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by anonymous

  • Cc freakm4ster@… added

comment:2 Changed 5 years ago by olaf.meeuwissen@…

Experienced the same symptoms when accessing the /hours tab after I had written some hours on the sole ticket in a test setup. The /hours tab displayed fine before I added the ticket and before I wrote hours to the ticket.

The test environment was served with tracd from a shell environment with a mixed bag of locale settings. Changing LC_TIME to C made the problem go away, at the expense on non-localised times in the /hours tab.

LC_TIME=C tracd [options] <env>

comment:3 Changed 5 years ago by y[DOT]kerleguer[AT]laposte[DOT]net

Experienced the same symptoms when adding hours during some months on a french installation : F'evrier, Aout and D'ecembre.

comment:4 Changed 4 years ago by AdrianFritz

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

At #4420 k0s points:

(In [5374]) use to_unicode helper function; hopefully fixes #4420

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 k0s. 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.